Script execution
This commit is contained in:
16
script/TestUnitTest.py
Normal file
16
script/TestUnitTest.py
Normal 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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user