def playtime_formatted(self): return millis_to_str(int(self.playtime))
def test_millis_to_str_7(self): str_ = "1:24.172" millis = 84172 self.assertEqual(millis_to_str(millis), str_)
def playtime_formatted(self): # return datetime.timedelta(milliseconds=int(self.playtime)) return millis_to_str(int(self.playtime))
def test_millis_to_str_4(self): str_ = "59.999" millis = 59999 self.assertEqual(millis_to_str(millis), str_)
def test_millis_to_str_6(self): str_ = "1:00.001" millis = 60001 self.assertEqual(millis_to_str(millis), str_)
def test_millis_to_str_2(self): str_ = "9.986" millis = 9986 self.assertEqual(millis_to_str(millis), str_)
def test_millis_to_str_3(self): str_ = "29.999" millis = 29999 self.assertEqual(millis_to_str(millis), str_)
def test_millis_to_str_8(self): str_ = "10:24.172" millis = 624172 self.assertEqual(millis_to_str(millis), str_)
def test_millis_to_str_1(self): str_ = "0.005" millis = 5 self.assertEqual(millis_to_str(millis), str_)