source: geniuswebcore/test/geniusweb/utilsTest.py@ 68

Last change on this file since 68 was 67, checked in by Bart Vastenhouw, 3 years ago

Added SAOP and simplerunner to GeniusWebPython. Several minor fixes.

File size: 248 bytes
Line 
1import unittest
2from geniusweb.utils import val
3
4
5class 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.