Exemplo n.º 1
0
class TestInstrumentValueEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = InstrumentValueDictionaryEncoder()

    def test_encoded(self):
        data = InstrumentValue('BBF', 'Bamboo Flute', 'National/Folk',
                               'same as Dizi or D\'Tzu')

        encoded = self._encoder.encode(data)

        self.assertEqual('BBF', encoded['code'])
        self.assertEqual('Bamboo Flute', encoded['name'])
        self.assertEqual('National/Folk', encoded['family'])
        self.assertEqual('same as Dizi or D\'Tzu', encoded['description'])
Exemplo n.º 2
0
class TestInstrumentValueEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = InstrumentValueDictionaryEncoder()

    def test_encoded(self):
        data = InstrumentValue('BBF', 'Bamboo Flute', 'National/Folk',
                               'same as Dizi or D\'Tzu')

        encoded = self._encoder.encode(data)

        self.assertEqual('BBF', encoded['code'])
        self.assertEqual('Bamboo Flute', encoded['name'])
        self.assertEqual('National/Folk', encoded['family'])
        self.assertEqual('same as Dizi or D\'Tzu', encoded['description'])
Exemplo n.º 3
0
 def setUp(self):
     self._encoder = InstrumentValueDictionaryEncoder()
Exemplo n.º 4
0
 def setUp(self):
     self._encoder = InstrumentValueDictionaryEncoder()