Esempio n. 1
0
class TestISWCDecoder(unittest.TestCase):
    def setUp(self):
        self._decoder = ISWCDictionaryDecoder()

    def test_encoded(self):
        record = self._decoder.decode('T0123456789')

        self.assertEqual('T0123456789', record)
Esempio n. 2
0
class TestISWCDecoder(unittest.TestCase):
    def setUp(self):
        self._decoder = ISWCDictionaryDecoder()

    def test_encoded(self):
        record = self._decoder.decode('T0123456789')

        self.assertEqual('T0123456789', record)
Esempio n. 3
0
class TestISWCDecoder(unittest.TestCase):
    def setUp(self):
        self._decoder = ISWCDictionaryDecoder()

    def test_encoded(self):
        data = {}

        data['id_code'] = 123456789
        data['check_digit'] = 1

        record = self._decoder.decode(data)

        self.assertEqual('T', record.header)
        self.assertEqual(123456789, record.id_code)
        self.assertEqual(1, record.check_digit)
Esempio n. 4
0
 def setUp(self):
     self._decoder = ISWCDictionaryDecoder()
Esempio n. 5
0
 def setUp(self):
     self._decoder = ISWCDictionaryDecoder()