summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/tests/test_libvirt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index c43512c10..14e66871a 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -1930,7 +1930,7 @@ class LibvirtConnTestCase(test.TestCase):
# assert that no exception is raised due to sha1 receiving an int
self.assertEqual(-1, unicode(e).find('must be string or buffer'
', not int'))
- count = (0 <= unicode(e).find('Unexpected method call'))
+ self.assertNotIn('Unexpected method call', unicode(e))
path = os.path.join(FLAGS.instances_path, instance.name)
if os.path.isdir(path):