diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-08-07 10:50:44 -0400 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-08-07 11:00:34 -0400 |
| commit | 2dfb74083d86b288f36611c36e4f1261fa5e2a43 (patch) | |
| tree | 639fdc6735869b64adc2ad85c4a9baa9a3ac4d04 /nova | |
| parent | 820ac93531b4f7254cd73b7e98b93dbf361e173f (diff) | |
Check against unexpected method call
Unexpected method call was counted but never asserted.
Change-Id: Ice2b7d3bd490ab9bf14450d765151dd234c0e064
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/test_libvirt.py | 2 |
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): |
