def test_read_uint32_returns_a_number(self): io = BytesIO(codecs.decode('DEADBEEF' + self.padding, 'hex_codec')) self.assertEqual(parser.read_size(io), 0xDEADBEEF) self.assertEqual(io.tell(), 4)