def test_field_shortstr(self): r = Reader('\x05hello') assert_equals('hello', r._field_shortstr()) assert_equals(6, r._pos)