test_parser_v10: fix unittest breakage

Commit 366da0 break unittest.
The following error occurs.

$ ./run_tests.sh
(...)

======================================================================
ERROR: test_parser (ryu.tests.unit.ofproto.test_parser_v10.TestOFPVendorStatsReply)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hideki/ryu/ryu/tests/unit/ofproto/test_parser_v10.py", line 4962, in test_parser
    eq_(specific_data, body.specific_data)
AttributeError: 'str' object has no attribute 'specific_data'

----------------------------------------------------------------------
Ran 1249 tests in 0.991s

FAILED (errors=1)

Signed-off-by: YAMADA Hideki <yamada.hideki@po.ntts.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMADA Hideki 2013-03-29 12:16:38 +09:00 committed by FUJITA Tomonori
parent d3970faeab
commit 03c622453a

View File

@ -4959,7 +4959,7 @@ class TestOFPVendorStatsReply(unittest.TestCase):
# body
body = res.body[0]
eq_(specific_data, body.specific_data)
eq_(specific_data, body)
# test __str__()
list_ = ('version:', 'msg_type', 'xid',)