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