This commit is contained in:
+5
-1
@@ -73,9 +73,13 @@ class ZidooTest(unittest.TestCase):
|
||||
def test_a_film_carries_its_year_progress_and_poster(self):
|
||||
self.assertEqual(self.zidoo.now_playing(), {
|
||||
"song": "A Private War", "artist": "2018", "image": None, "poster_id": 108,
|
||||
"position_ms": 1589745, "duration_ms": 6635092,
|
||||
"play_state": "play", "position_ms": 1589745, "duration_ms": 6635092,
|
||||
})
|
||||
|
||||
def test_a_paused_film_is_still_there_but_paused(self):
|
||||
FakeZidoo.video["status"] = 0
|
||||
self.assertEqual(self.zidoo.now_playing()["play_state"], "pause")
|
||||
|
||||
def test_the_poster_is_looked_up_once_per_file(self):
|
||||
self.zidoo.now_playing()
|
||||
self.zidoo.now_playing()
|
||||
|
||||
Reference in New Issue
Block a user