コード例 #1
0
 def test__calculate_timeout_avg_is_less_than_min(self):
     avg_test_runtime = 10
     self.assertEqual(under_test.MIN_AVG_TEST_TIME_SEC,
                      under_test._calculate_timeout(avg_test_runtime))
コード例 #2
0
 def test__calculate_timeout(self):
     avg_test_runtime = 455.1
     expected_result = ceil(avg_test_runtime *
                            under_test.AVG_TEST_TIME_MULTIPLIER)
     self.assertEqual(expected_result,
                      under_test._calculate_timeout(avg_test_runtime))