diff options
| author | Ewan Mellor <ewan.mellor@citrix.com> | 2010-07-29 00:58:33 +0100 |
|---|---|---|
| committer | Ewan Mellor <ewan.mellor@citrix.com> | 2010-07-29 00:58:33 +0100 |
| commit | 04a6a0267e7dc0f4e587e43f23b4acf0dcef52fc (patch) | |
| tree | 6bcdfafed1cb2332ebd8b7c0d03b4fed4a82520e /nova/tests | |
| parent | 9f4996e8738991a95a23cba2caa660f7002f94cd (diff) | |
More merges from trunk. Not everything came over the first time.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/auth_unittest.py | 6 | ||||
| -rw-r--r-- | nova/tests/process_unittest.py | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/nova/tests/auth_unittest.py b/nova/tests/auth_unittest.py index 073ff71d2..2167c2385 100644 --- a/nova/tests/auth_unittest.py +++ b/nova/tests/auth_unittest.py @@ -193,9 +193,15 @@ class AuthTestCase(test.BaseTestCase): for vpn in vpns: vpn.destroy() + def test_214_can_retrieve_project_by_user(self): + project = self.manager.create_project('testproj2', 'test2', 'Another test project', ['test2']) + self.assert_(len(self.manager.get_projects()) > 1) + self.assertEqual(len(self.manager.get_projects('test2')), 1) + def test_299_can_delete_project(self): self.manager.delete_project('testproj') self.assertFalse(filter(lambda p: p.name == 'testproj', self.manager.get_projects())) + self.manager.delete_project('testproj2') def test_999_can_delete_users(self): self.manager.delete_user('test1') diff --git a/nova/tests/process_unittest.py b/nova/tests/process_unittest.py index c96bb5913..1c15b69a0 100644 --- a/nova/tests/process_unittest.py +++ b/nova/tests/process_unittest.py @@ -120,10 +120,3 @@ class ProcessTestCase(test.TrialTestCase): pool2 = process.SharedPool() self.assert_(id(pool1) == id(pool2)) - def test_shared_pool_works_as_singleton(self): - d1 = process.simple_execute('sleep 1') - d2 = process.simple_execute('sleep 0.005') - # lp609749: would have failed with - # exceptions.AssertionError: Someone released me too many times: - # too many tokens! - return d1 |
