示例#1
0
文件: test.py 项目: Zhoroev/Exam_2
 def test_arguments(self):
     result = func(5, 1, 7)
     self.assertEqual(result, 13)
示例#2
0
文件: test.py 项目: Zhoroev/Exam_2
 def test_diff_arguments(self):
     result = func(1, 'two', 3, 'four', 5)
     self.assertEqual(result, 9)
示例#3
0
文件: test.py 项目: Zhoroev/Exam_2
 def test_diff_arguments_2(self):
     input_data = [(5, 3, 1), 5.7, 'thirteen', 10, {1: 10}]
     result = func(*input_data)
     self.assertEqual(result, 15.7)