示例#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)