summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMADA Hideki <yamada.hideki@po.ntts.co.jp>2013-03-29 12:16:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-03-30 14:10:33 +0900
commit03c622453ad2e45d76a54d9222863a7ae43056fe (patch)
treec355a767a30c175f9be3521c217347626d9d3ca6
parentd3970faeabfc886a4524bc8ce73461f8ab532998 (diff)
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>
-rw-r--r--ryu/tests/unit/ofproto/test_parser_v10.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py b/ryu/tests/unit/ofproto/test_parser_v10.py
index 66a69a44..8723231a 100644
--- a/ryu/tests/unit/ofproto/test_parser_v10.py
+++ b/ryu/tests/unit/ofproto/test_parser_v10.py
@@ -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',)