Merge "Fix py34 error of indexing 'dict_keys' object"

This commit is contained in:
Jenkins 2016-03-29 10:21:27 +00:00 committed by Gerrit Code Review
commit f8867fd6ff

View File

@ -1392,7 +1392,7 @@ class TestReconMiddleware(unittest.TestCase):
os.listdir = fail_os_listdir
resp = self.real_app_get_device_info()
os.listdir = self.real_listdir
device_path = resp.keys()[0]
device_path = list(resp)[0]
self.assertIsNone(resp[device_path])
def test_get_swift_conf_md5(self):