| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| 1 | import unittest |
||
| 23 | class TestPlayable(TestPlayerBase): |
||
| 24 | module = player_playable |
||
| 25 | |||
| 26 | def test_playablefile(self): |
||
| 27 | exts = { |
||
| 28 | 'mp3': 'mp3', |
||
| 29 | 'wav': 'wav', |
||
| 30 | 'ogg': 'ogg' |
||
| 31 | } |
||
| 32 | for ext, media_format in exts.items(): |
||
| 33 | pf = self.module.PlayableFile(path = 'asdf.%s' % ext, app=self.app) |
||
| 34 | self.assertEqual(pf.media_format, media_format) |
||
| 35 | |||
| 36 | def test_playlistfile(self): |
||
| 37 | pf = self.module.PlayListFile(path='filename.m3u', app=self.app) |
||
| 38 | self.assertTrue(isinstance(pf, self.module.M3UFile)) |
||
| 39 | pf = self.module.PlayListFile(path='filename.m3u8', app=self.app) |
||
| 40 | self.assertTrue(isinstance(pf, self.module.M3UFile)) |
||
| 41 | pf = self.module.PlayListFile(path='filename.pls', app=self.app) |
||
| 42 | self.assertTrue(isinstance(pf, self.module.PLSFile)) |
||
| 43 | |||
| 44 | def test_m3ufile(self): |
||
| 45 | pass |
||
| 46 |