Exemple #1
0
 def test_compute_create_time(self, unused_name, age, expected):
     del unused_name
     result = param_util.age_to_create_time(age, FIXED_TIME)
     self.assertEqual(expected, result)
Exemple #2
0
 def test_compute_create_time_fail(self, unused_name, age):
     del unused_name
     with self.assertRaisesRegexp(ValueError, 'Unable to parse age string'):
         _ = param_util.age_to_create_time(age)
Exemple #3
0
 def test_compute_create_time(self, unused_name, age, expected):
     result = param_util.age_to_create_time(age, self.fixed_time)
     self.assertEqual(expected, result)