Exemple #1
0
 def test_simple(self):
     self.assertTrue(events.decodable(b'd', 'utf-8'))
     self.assertFalse(events.decodable(b'\xfe',
                                       'utf-8'))  # 254 is off limits
Exemple #2
0
 def test_simple(self):
     self.assertTrue(events.decodable(b"d", "utf-8"))
     self.assertFalse(events.decodable(b"\xfe",
                                       "utf-8"))  # 254 is off limits
Exemple #3
0
 def test_simple(self):
     self.assertTrue(events.decodable(b'd', 'utf-8'))
     self.assertFalse(events.decodable(b'\xfe', 'utf-8')) # 254 is off limits