Script execution

This commit is contained in:
2019-12-11 09:30:59 +01:00
parent 6e43ea3614
commit 5e88f6113c

16
script/TestUnitTest.py Normal file
View File

@@ -0,0 +1,16 @@
import unittest
#reload(ut)
class Test(unittest.TestCase):
def testAdd(self): ## test method names begin 'test*'
self.assertEquals((1 + 2), 3)
self.assertEquals(0 + 1, 1)
def testMultiply(self):
self.assertEquals((0 * 10), 0)
self.assertEquals((5 * 8), 40)
if __name__ == '__main__':
#import sys;sys.argv = ['', '__main__.UnitTest']
unittest.main()