fixed tests
This commit is contained in:
parent
591d2d741f
commit
7db61cc4b4
2 changed files with 23 additions and 11 deletions
|
@ -1,11 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import unittest
|
||||
from pprint import pprint as pp
|
||||
|
||||
from media.metadata.process import global_reader
|
||||
from media.monitor.metadata import Metadata
|
||||
|
||||
import media.metadata.definitions as defs
|
||||
defs.load_definitions()
|
||||
|
||||
class TestMMP(unittest.TestCase):
|
||||
def test_sanity(self):
|
||||
m = global_reader.read_mutagen("/home/rudi/music/Nightingale.mp3")
|
||||
path = "/home/rudi/music/Nightingale.mp3"
|
||||
m = global_reader.read_mutagen(path)
|
||||
self.assertTrue( len(m) > 0 )
|
||||
n = Metadata(path)
|
||||
self.assertEqual(n.extract(), m)
|
||||
pp(n.extract())
|
||||
print("--------------")
|
||||
pp(m)
|
||||
|
||||
|
||||
if __name__ == '__main__': unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue