示例#1
0
文件: test.py 项目: zayng/autotest
 def test_add(self):
     try:
         j = count(2, 4)
         add = j.add
         assert (add == 5), "Inter addtion result error"
     except AssertionError as msg:
         print(msg)
     else:
         print('test pass')
示例#2
0
文件: utest.py 项目: zayng/autotest
 def setUp(self):
     print('befor case')
     self.j = count(2, 3)