fix bugs found by pylint
diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py
index 26c25d3..1d56f79 100644
--- a/src/python/oftest/testutils.py
+++ b/src/python/oftest/testutils.py
@@ -1301,7 +1301,7 @@
test.assertTrue(reply is not None, "No response to stats request")
stats.extend(reply.entries)
while reply.flags & more_flag != 0:
- reply, pkt = self.controller.poll(exp_msg=ofp.OFPT_STATS_REPLY)
+ reply, pkt = test.controller.poll(exp_msg=ofp.OFPT_STATS_REPLY)
test.assertTrue(reply is not None, "No response to stats request")
stats.extend(reply.entries)
return stats