Issue-40. Fix assert in message_types bad ver
diff --git a/tests/message_types.py b/tests/message_types.py
index 7785f36..fe19f61 100644
--- a/tests/message_types.py
+++ b/tests/message_types.py
@@ -107,8 +107,8 @@
'Switch did not reply with error message')
self.assertTrue(response.type==ofp.OFPET_BAD_REQUEST,
'Message field type is not OFPET_BAD_REQUEST')
- self.assertTrue(response.type==ofp.OFPET_BAD_REQUEST,
- 'Message field code is not OFPBRC_BAD_VERSION')
+ self.assertTrue(response.code==ofp.OFPBRC_BAD_VERSION,
+ 'Message field code is not OFPBRC_BAD_VERSION')
@group('smoke')