From 135d16e9a550e0f79ee14928cbab7612970655d1 Mon Sep 17 00:00:00 2001
From: Ihar Hrachyshka <ihrachys@redhat.com>
Date: Tue, 25 Mar 2014 10:43:07 +0100
Subject: [PATCH] Fixed possible pep8 failure due to pyflakes bug

There is a bug in pyflakes that may trigger F811 violation when import
is not used in a file before its redefinition in local class method
scope, even though it's used in other classes later in the same file.

Change-Id: Ie611e2ff93c59b01a2695c3d944cfe118f874547
Related-Bug: #1297161
---
 tests/test_transport.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_transport.py b/tests/test_transport.py
index 56f5caab3..7ba2ee4d1 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -144,11 +144,11 @@ class GetTransportTestCase(test_utils.BaseTestCase):
             kwargs['allowed_remote_exmods'] = self.allowed
         if self.aliases is not None:
             kwargs['aliases'] = self.aliases
-        transport = messaging.get_transport(self.conf, **kwargs)
+        transport_ = messaging.get_transport(self.conf, **kwargs)
 
-        self.assertIsNotNone(transport)
-        self.assertIs(transport.conf, self.conf)
-        self.assertIs(transport._driver, drvr)
+        self.assertIsNotNone(transport_)
+        self.assertIs(transport_.conf, self.conf)
+        self.assertIs(transport_._driver, drvr)
 
 
 class GetTransportSadPathTestCase(test_utils.BaseTestCase):