示例#1
0
文件: tests.py 项目: arturUkr/common
 def test_multiple_ints_invalid_argument_values(self):
     with self.assertRaises(ValueError):
         multiple_ints(6.0, 2)
         multiple_ints([12, 5, 7], 2)
         multiple_ints("Some useful text from from your teacher", 2)
         multiple_ints(True, 2)
示例#2
0
文件: tests.py 项目: arturUkr/common
 def test_multiple_ints_good_values(self):
     self.assertEqual(multiple_ints(6, 0), 0)
     self.assertEqual(multiple_ints(12, 2), 24)