示例#1
0
class TestTableValueEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = TableValueDictionaryEncoder()

    def test_encoded(self):
        data = TableValue('AS', 'Assignor',
                          'The entitled party who is assigning the rights to a musical work within an agreement')

        encoded = self._encoder.encode(data)

        self.assertEqual('AS', encoded['code'])
        self.assertEqual('Assignor', encoded['name'])
        self.assertEqual(
            'The entitled party who is assigning the rights to a musical work within an agreement',
            encoded['description'])
示例#2
0
class TestTableValueEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = TableValueDictionaryEncoder()

    def test_encoded(self):
        data = TableValue(
            'AS', 'Assignor',
            'The entitled party who is assigning the rights to a musical work within an agreement'
        )

        encoded = self._encoder.encode(data)

        self.assertEqual('AS', encoded['code'])
        self.assertEqual('Assignor', encoded['name'])
        self.assertEqual(
            'The entitled party who is assigning the rights to a musical work within an agreement',
            encoded['description'])
示例#3
0
 def setUp(self):
     self._encoder = TableValueDictionaryEncoder()
示例#4
0
 def setUp(self):
     self._encoder = TableValueDictionaryEncoder()