Example #1
0
class TestAVIKeyDecoder(unittest.TestCase):
    def setUp(self):
        self._decoder = AVIKeyDictionaryDecoder()

    def test_encoded(self):
        data = {}

        data['society_code'] = 1
        data['av_number'] = 2

        record = self._decoder.decode(data)

        self.assertEqual(1, record.society_code)
        self.assertEqual(2, record.av_number)
Example #2
0
 def setUp(self):
     self._decoder = AVIKeyDictionaryDecoder()