summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-07 22:36:28 +0000
committerGerrit Code Review <review@openstack.org>2012-08-07 22:36:28 +0000
commitf86a44e1bd1c32e521f8d28794d1c0569540cbb3 (patch)
tree20455765e367d84195dfc2b9d96eeea0797342b6 /nova
parentea81b2a49d82c73ece17af26eb25b1f1346c0bc7 (diff)
parent2dfb74083d86b288f36611c36e4f1261fa5e2a43 (diff)
Merge "Check against unexpected method call"
Diffstat (limited to 'nova')
-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):