diff options
author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-02 23:48:42 +0000 |
---|---|---|
committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-03-02 23:50:51 +0000 |
commit | fe87151dacebcf1b1e7475247b4e156f3c2295c5 (patch) | |
tree | aae4a1365f764334e912c15720d3f29bd77bfe6c /nova/exception.py | |
parent | 665c453ec2c1c8cc7ccdd5870fbbf0c01e2cf2db (diff) | |
download | nova-fe87151dacebcf1b1e7475247b4e156f3c2295c5.tar.gz nova-fe87151dacebcf1b1e7475247b4e156f3c2295c5.tar.xz nova-fe87151dacebcf1b1e7475247b4e156f3c2295c5.zip |
Fix test_migrate_disk_and_power_off_exception
The test asserts that Exception is raised, which means any number of
failures within the test itself will cause it to pass. In this case
there were two bugs in the test case:
1) Too many arguments to migrate_disk_and_power_off
2) fake_get_instance_disk_info should return a JSON string
I changed the assert to catch an AssertionError exception instead to
avoid this kind of bug in the future
Change-Id: I5e0f57b093ee1b2830696542d343c2dd89c383d6
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions