コード例 #1
0
 def test_no_strip(self):
     self.assertEqual(BytesValueProtocol().read(b'foo\t \n\n'),
                      (None, b'foo\t \n\n'))
コード例 #2
0
 def test_reads_raw_line(self):
     self.assertEqual(BytesValueProtocol().read(b'foobar'),
                      (None, b'foobar'))
コード例 #3
0
 def test_bytestrings(self):
     self.assertRoundTripOK(BytesValueProtocol(), None, b'\xe90\c1a')
コード例 #4
0
 def test_dumps_keys(self):
     self.assertEqual(BytesValueProtocol().write(b'foo', b'bar'), b'bar')