From bed38d4d124b5e032c2c4ac0f920cc02fc9c06e0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 9 Aug 2013 12:52:09 +0900 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- ryu/tests/unit/ofproto/test_parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ryu/tests/unit/ofproto/test_parser.py b/ryu/tests/unit/ofproto/test_parser.py index d1746e55..4cf5641f 100644 --- a/ryu/tests/unit/ofproto/test_parser.py +++ b/ryu/tests/unit/ofproto/test_parser.py @@ -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)