예제 #1
0
파일: test.py 프로젝트: nimo0814/DailyStudy
 def test_add(self):
     try:
         j=Count(2,3)
         add=j.add()
         assert (add==5),'Integer addition result error!'
     except AssertionError as msg:
         print(msg)
     else:
         print('Test pass')
예제 #2
0
 def test_add(self):
     j = Count(2, 3)
     self.assertEqual(j.add(), 5)
예제 #3
0
 def test_add2(self):
     j = Count(41, 76)
     self.assertEqual(j.add(), 117)