diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-02-18 15:59:42 -0800 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-02-18 15:59:42 -0800 |
| commit | fcd31c4d7c3855cb95ac75d6966b377eca8bbe7d (patch) | |
| tree | b849c2816a2bb130fc5052149c67be51b61e550a | |
| parent | 1cc8e2e1eb262f4bc54c22b197a053e4fee4a1e6 (diff) | |
added instance types purge test
| -rw-r--r-- | nova/tests/test_instance_types.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/tests/test_instance_types.py b/nova/tests/test_instance_types.py index 0d54cc283..fe052110f 100644 --- a/nova/tests/test_instance_types.py +++ b/nova/tests/test_instance_types.py @@ -49,12 +49,16 @@ class InstanceTypeTestCase(test.TestCase): new = instance_types.get_all_types() self.assertNotEqual(len(starting_inst_list), len(new), - 'instance was not created') + 'instance type was not created') instance_types.destroy(self.name) self.assertEqual(1, instance_types.get_instance_type(self.name)["deleted"]) self.assertEqual(starting_inst_list, instance_types.get_all_types()) db.instance_type_purge(context.get_admin_context(), self.name) + self.assertEqual(len(starting_inst_list), + len(instance_types.get_all_types()), + 'instance type not purged') + def test_get_all_instance_types(self): """Ensures that all instance types can be retrieved""" |
