def test_math(self): seed = random.random() result = annotator.get_total_budget(seed) self.assertEqual(result, seed * 60)
def test_is_float(self): result = annotator.get_total_budget(random.random()) self.assertIsInstance(result, float)