Example #1
0
 def test_can_handle(self):
     entry = Entry(addr=None, command='SET snowman "is ☃!"', responses=[])
     self.assertTrue(entry.can_handle(b'*3\r\n$3\r\nSET\r\n$7\r\nsnowman\r\n$7\r\nis \xe2\x98\x83!'))
Example #2
0
 def test_can_handle(self):
     entry = Entry(addr=None, command='SET snowman "is ☃!"', responses=[])
     self.assertTrue(entry.can_handle(b'*3\r\n$3\r\nSET\r\n$7\r\nsnowman\r\n$7\r\nis \xe2\x98\x83!'))