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'])
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'])
def setUp(self): self._encoder = TableValueDictionaryEncoder()