Пример #1
0
 def playtime_formatted(self):
     return millis_to_str(int(self.playtime))
Пример #2
0
 def test_millis_to_str_7(self):
     str_ = "1:24.172"
     millis = 84172
     self.assertEqual(millis_to_str(millis), str_)
Пример #3
0
 def playtime_formatted(self):
     # return datetime.timedelta(milliseconds=int(self.playtime))
     return millis_to_str(int(self.playtime))
Пример #4
0
 def test_millis_to_str_4(self):
     str_ = "59.999"
     millis = 59999
     self.assertEqual(millis_to_str(millis), str_)
Пример #5
0
 def test_millis_to_str_6(self):
     str_ = "1:00.001"
     millis = 60001
     self.assertEqual(millis_to_str(millis), str_)
Пример #6
0
 def test_millis_to_str_2(self):
     str_ = "9.986"
     millis = 9986
     self.assertEqual(millis_to_str(millis), str_)
Пример #7
0
 def test_millis_to_str_3(self):
     str_ = "29.999"
     millis = 29999
     self.assertEqual(millis_to_str(millis), str_)
Пример #8
0
 def test_millis_to_str_8(self):
     str_ = "10:24.172"
     millis = 624172
     self.assertEqual(millis_to_str(millis), str_)
Пример #9
0
 def test_millis_to_str_1(self):
     str_ = "0.005"
     millis = 5
     self.assertEqual(millis_to_str(millis), str_)
Пример #10
0
 def test_millis_to_str_7(self):
     str_ = "1:24.172"
     millis = 84172
     self.assertEqual(millis_to_str(millis), str_)
Пример #11
0
 def test_millis_to_str_8(self):
     str_ = "10:24.172"
     millis = 624172
     self.assertEqual(millis_to_str(millis), str_)
Пример #12
0
 def test_millis_to_str_6(self):
     str_ = "1:00.001"
     millis = 60001
     self.assertEqual(millis_to_str(millis), str_)
Пример #13
0
 def test_millis_to_str_4(self):
     str_ = "59.999"
     millis = 59999
     self.assertEqual(millis_to_str(millis), str_)
Пример #14
0
 def test_millis_to_str_3(self):
     str_ = "29.999"
     millis = 29999
     self.assertEqual(millis_to_str(millis), str_)
Пример #15
0
 def playtime_formatted(self):
     # return datetime.timedelta(milliseconds=int(self.playtime))
     return millis_to_str(int(self.playtime))
Пример #16
0
 def test_millis_to_str_2(self):
     str_ = "9.986"
     millis = 9986
     self.assertEqual(millis_to_str(millis), str_)
Пример #17
0
 def playtime_formatted(self):
     return millis_to_str(int(self.playtime))
Пример #18
0
 def test_millis_to_str_1(self):
     str_ = "0.005"
     millis = 5
     self.assertEqual(millis_to_str(millis), str_)