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 <[email protected]> --- 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 d1746e5..4cf5641 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) -- 1.8.1.5 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
