Exemplo n.º 1
0
 def test_str1_20(self):
     print("running test_str1_20 test")
     act = sum_fun("str1", 20)
     exp = None
     self.assertEqual(act, exp, "test_str1_20 failed")
     print("done test_str1_20 test")
Exemplo n.º 2
0
 def test_10_str2(self):
     print("running test_10_str2 test")
     act = sum_fun(10, "str2")
     exp = None
     self.assertEqual(act, exp, "test_10_str2 failed")
     print("done test_10_str2 test")
Exemplo n.º 3
0
 def test_n10_9(self):
     print("running test_n10_9 test")
     act = sum_fun(-10, 9)
     exp = -1
     self.assertEqual(act, exp, "test_n10_9 failed")
     print("done test_n10_9 test")
Exemplo n.º 4
0
 def test_str1_str2(self):
     print("running test_str1_str2 test")
     act = sum_fun("str1", "str2")
     exp = "str1str2"
     self.assertEqual(act, exp, "test_str1_str2 failed")
     print("done test_str1_str2 test")
Exemplo n.º 5
0
 def test_10_20(self):
     print("running test_10_20 test")
     act = sum_fun(10, 20)
     exp = 30
     self.assertEqual(act, exp, "test_10_20 failed")
     print("done test_10_20 test")