class TestAgreementTerritoryRecordDictionaryEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = AgreementTerritoryDictionaryEncoder()

    def test_encoded(self):
        data = AgreementTerritoryRecord(record_type='TER',
                                        transaction_sequence_n=3,
                                        record_sequence_n=15,
                                        tis_numeric_code=51,
                                        inclusion_exclusion_indicator='I')

        encoded = self._encoder.encode(data)

        self.assertEqual('TER', encoded['record_type'])
        self.assertEqual(3, encoded['transaction_sequence_n'])
        self.assertEqual(15, encoded['record_sequence_n'])
        self.assertEqual(51, encoded['tis_numeric_code'])
        self.assertEqual('I', encoded['inclusion_exclusion_indicator'])
예제 #2
0
class TestAgreementTerritoryRecordDictionaryEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = AgreementTerritoryDictionaryEncoder()

    def test_encoded(self):
        data = AgreementTerritoryRecord(record_type='TER',
                                        transaction_sequence_n=3,
                                        record_sequence_n=15,
                                        tis_numeric_code=51,
                                        inclusion_exclusion_indicator='I')

        encoded = self._encoder.encode(data)

        self.assertEqual('TER', encoded['record_type'])
        self.assertEqual(3, encoded['transaction_sequence_n'])
        self.assertEqual(15, encoded['record_sequence_n'])
        self.assertEqual(51, encoded['tis_numeric_code'])
        self.assertEqual('I', encoded['inclusion_exclusion_indicator'])
 def setUp(self):
     self._encoder = AgreementTerritoryDictionaryEncoder()
예제 #4
0
 def setUp(self):
     self._encoder = AgreementTerritoryDictionaryEncoder()