test_parser: stop testing unsupported operations

while this happens to work right now, it will stop working when
we re-expose "len" and friends, which are only available after
parse or serialize.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-08-09 12:52:09 +09:00 committed by FUJITA Tomonori
parent 7ae93d2452
commit bed38d4d12

View File

@ -154,10 +154,9 @@ class Test_Parser(unittest.TestCase):
# json -> OFPxxx -> json
msg2 = self._jsondict_to_msg(dp, json_dict)
msg2.serialize()
eq_(self._msg_to_jsondict(msg2), json_dict)
if has_serializer:
msg2.serialize()
eq_(self._msg_to_jsondict(msg2), json_dict)
eq_(wire_msg, msg2.buf)