def test_field_longstr(self): r = Reader('\x00\x00\x01\x00' + ('a' * 256)) assert_equals('a' * 256, r._field_longstr()) assert_equals(260, r._pos)