def test_force_bytes_string(self): from eek.spider import force_bytes self.assertEquals(force_bytes('\xe2\x98\x83'), '\xe2\x98\x83')
def test_force_bytes_unicode_literal(self): from eek.spider import force_bytes self.assertEquals(force_bytes(u'\u2603'), '\xe2\x98\x83')