Beispiel #1
0
 def test_force_bytes_string(self):
     from eek.spider import force_bytes
     self.assertEquals(force_bytes('\xe2\x98\x83'), '\xe2\x98\x83')
Beispiel #2
0
 def test_force_bytes_string(self):
     from eek.spider import force_bytes
     self.assertEquals(force_bytes('\xe2\x98\x83'), '\xe2\x98\x83')
Beispiel #3
0
 def test_force_bytes_unicode_literal(self):
     from eek.spider import force_bytes
     self.assertEquals(force_bytes(u'\u2603'), '\xe2\x98\x83')
Beispiel #4
0
 def test_force_bytes_unicode_literal(self):
     from eek.spider import force_bytes
     self.assertEquals(force_bytes(u'\u2603'), '\xe2\x98\x83')