source:
geniuswebcore/test/geniusweb/utilsTest.py@
68
Last change on this file since 68 was 67, checked in by , 3 years ago | |
---|---|
File size: 248 bytes |
Line | |
---|---|
1 | import unittest |
2 | from geniusweb.utils import val |
3 | |
4 | |
5 | class utilsTest (unittest.TestCase): |
6 | def testVal(self): |
7 | a:Optional[int]=None |
8 | self.assertRaises(ValueError, lambda:val(a)) |
9 | a=1 |
10 | self.assertEqual(1, val(a)) |
11 |
Note:
See TracBrowser
for help on using the repository browser.