예제 #1
0
파일: data_tests.py 프로젝트: znull/pika
 def test_encode_table_bytes(self):
     result = []
     byte_count = data.encode_table(result, self.FIELD_TBL_VALUE)
     self.assertEqual(byte_count, len(self.FIELD_TBL_ENCODED))
예제 #2
0
파일: data_tests.py 프로젝트: zyp/pika
 def test_encode_table_bytes(self):
     result = []
     byte_count = data.encode_table(result, self.FIELD_TBL_VALUE)
     self.assertEqual(byte_count, 191)
예제 #3
0
파일: data_tests.py 프로젝트: znull/pika
 def test_encode_table(self):
     result = []
     data.encode_table(result, self.FIELD_TBL_VALUE)
     self.assertEqual(''.join(result), self.FIELD_TBL_ENCODED)
예제 #4
0
파일: data_tests.py 프로젝트: zyp/pika
 def test_encode_table(self):
     result = []
     data.encode_table(result, self.FIELD_TBL_VALUE)
     self.assertEqual(b''.join(result), self.FIELD_TBL_ENCODED)