def test_skip_item_skips_a_non_empty_item(self): io = StringIO(('00000004DEADBEEF' + self.padding).decode('hex')) Parser.skip_item(io) self.assertEqual(io.pos, 8)
def test_skip_item_skips_a_non_empty_item(self): io = BytesIO(codecs.decode('00000004DEADBEEF' + self.padding, 'hex_codec')) Parser.skip_item(io) self.assertEqual(io.tell(), 8)