예제 #1
0
 def test_str_a(self):
     self.assertEqual(sum_func('5', 6), 11)
예제 #2
0
 def test_incorrect_str(self):
     self.assertEqual(sum_func(5, 'khjasdfg'), False)
예제 #3
0
 def test_correct(self):
     self.assertEqual(sum_func(5, 6), 11)
예제 #4
0
 def test_dict(self):
     self.assertEqual(sum_func(5, {}), False)
예제 #5
0
 def test_list(self):
     self.assertEqual(sum_func(5, []), False)
예제 #6
0
 def test_bool_false(self):
     self.assertEqual(sum_func(5, False), False)
예제 #7
0
 def test_bool_true(self):
     self.assertEqual(sum_func(5, True), False)
예제 #8
0
 def test_str_all(self):
     self.assertEqual(sum_func('5', '6'), 11)