diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-14 14:32:15 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-14 14:32:15 -0700 |
| commit | 7c6aa5eb302637dde0d800f7155235858bbabbeb (patch) | |
| tree | c420a04fbe624809b430922b7f5bb99e6e12928d /nova | |
| parent | 119bbe04f3c1de06a8c40502c314f13c89561564 (diff) | |
| download | nova-7c6aa5eb302637dde0d800f7155235858bbabbeb.tar.gz nova-7c6aa5eb302637dde0d800f7155235858bbabbeb.tar.xz nova-7c6aa5eb302637dde0d800f7155235858bbabbeb.zip | |
Removed duplicated test, renamed same-named (but non-identical) tests
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/test_compute.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index e486050be..14559d1dc 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -115,7 +115,7 @@ class ComputeTestCase(test.TestCase): finally: db.instance_destroy(self.context, ref[0]['id']) - def test_create_instance_associates_security_groups(self): + def test_create_instance_associates_security_groups_1(self): """Make sure create associates security groups""" group = self._create_group() instance_ref = models.Instance() @@ -124,18 +124,7 @@ class ComputeTestCase(test.TestCase): instance_ref['hostname'] = 'i-00000001' return instance_ref - def test_create_instance_defaults_display_name(self): - """Verify that an instance cannot be created without a display_name.""" - cases = [dict(), dict(display_name=None)] - for instance in cases: - ref = self.compute_api.create(self.context, - FLAGS.default_instance_type, None, **instance) - try: - self.assertNotEqual(ref[0]['display_name'], None) - finally: - db.instance_destroy(self.context, ref[0]['id']) - - def test_create_instance_associates_security_groups(self): + def test_create_instance_associates_security_groups_2(self): """Make sure create associates security groups""" group = self._create_group() ref = self.compute_api.create( |
