diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-08-09 12:52:09 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-08-11 15:45:58 +0900 |
commit | bed38d4d124b5e032c2c4ac0f920cc02fc9c06e0 (patch) | |
tree | 84e225668b3603d26064557ed37b4c0f4c9988ef | |
parent | 7ae93d2452db931b36d696d933bf47529cddafd5 (diff) |
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>
-rw-r--r-- | ryu/tests/unit/ofproto/test_parser.py | 5 |
1 files 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) |