コード例 #1
0
ファイル: test_nat.py プロジェクト: clauxz/CWR-DataApi
class TestNATRecordDictionaryEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = NonRomanAlphabetTitleDictionaryEncoder()

    def test_encoded(self):
        data = NonRomanAlphabetTitleRecord(record_type='NAT',
                                           transaction_sequence_n=3,
                                           record_sequence_n=15,
                                           title='THE TITLE',
                                           title_type='FT',
                                           language_code='ES')

        encoded = self._encoder.encode(data)

        self.assertEqual('NAT', encoded['record_type'])
        self.assertEqual(3, encoded['transaction_sequence_n'])
        self.assertEqual(15, encoded['record_sequence_n'])
        self.assertEqual('THE TITLE', encoded['title'])
        self.assertEqual('FT', encoded['title_type'])
        self.assertEqual('ES', encoded['language_code'])
コード例 #2
0
class TestNATRecordDictionaryEncoding(unittest.TestCase):
    def setUp(self):
        self._encoder = NonRomanAlphabetTitleDictionaryEncoder()

    def test_encoded(self):
        data = NonRomanAlphabetTitleRecord(record_type='NAT',
                                           transaction_sequence_n=3,
                                           record_sequence_n=15,
                                           title='THE TITLE',
                                           title_type='FT',
                                           language_code='ES')

        encoded = self._encoder.encode(data)

        self.assertEqual('NAT', encoded['record_type'])
        self.assertEqual(3, encoded['transaction_sequence_n'])
        self.assertEqual(15, encoded['record_sequence_n'])
        self.assertEqual('THE TITLE', encoded['title'])
        self.assertEqual('FT', encoded['title_type'])
        self.assertEqual('ES', encoded['language_code'])
コード例 #3
0
ファイル: test_nat.py プロジェクト: clauxz/CWR-DataApi
 def setUp(self):
     self._encoder = NonRomanAlphabetTitleDictionaryEncoder()
コード例 #4
0
 def setUp(self):
     self._encoder = NonRomanAlphabetTitleDictionaryEncoder()