Files
whipper-gui/morituri/test/test_common_mbngs.py
Thomas Vander Stichele ee99d833a7 rename our musicbrainzngs.py to mbngs.py
Helps Debian package which prefers to strip out our copy of
musicbrainzngs
2013-03-05 16:12:52 +01:00

25 lines
649 B
Python

# -*- Mode: Python; test-case-name: morituri.test.test_common_mbngs -*-
# vi:si:et:sw=4:sts=4:ts=4
import os
import json
import unittest
from morituri.common import mbngs
class MetadataTestCase(unittest.TestCase):
def testJeffEverybodySingle(self):
path = os.path.join(os.path.dirname(__file__),
'morituri.release.3451f29c-9bb8-4cc5-bfcc-bd50104b94f8.json')
handle = open(path, "rb")
response = json.loads(handle.read())
handle.close()
discid = "wbjbST2jUHRZaB1inCyxxsL7Eqc-"
metadata = mbngs._getMetadata({}, response['release'], discid)
self.failIf(metadata.release)