From 2dfb74083d86b288f36611c36e4f1261fa5e2a43 Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Tue, 7 Aug 2012 10:50:44 -0400 Subject: Check against unexpected method call Unexpected method call was counted but never asserted. Change-Id: Ice2b7d3bd490ab9bf14450d765151dd234c0e064 --- nova/tests/test_libvirt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') 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): -- cgit