summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-08-09 12:52:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-08-11 15:45:58 +0900
commitbed38d4d124b5e032c2c4ac0f920cc02fc9c06e0 (patch)
tree84e225668b3603d26064557ed37b4c0f4c9988ef
parent7ae93d2452db931b36d696d933bf47529cddafd5 (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.py5
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)