diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-23 09:40:43 -0800 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-23 09:40:43 -0800 |
| commit | ef0dfb6809f31cfe8ca8056892fc9dcc2f00a0d7 (patch) | |
| tree | 7f91ef87357a2ef061f116e76eaa8791d5ef9b37 /nova/tests | |
| parent | 46ccef67f35d130cd94a1a6d743124313097964b (diff) | |
Changed unit test to refer to compute API, per Todd's suggestion.
Avoids needing to extend our implementation of the EC2 API.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_quota.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/tests/test_quota.py b/nova/tests/test_quota.py index 36ccc273e..1e42fddf3 100644 --- a/nova/tests/test_quota.py +++ b/nova/tests/test_quota.py @@ -16,6 +16,7 @@ # License for the specific language governing permissions and limitations # under the License. +from nova import compute from nova import context from nova import db from nova import flags @@ -168,7 +169,7 @@ class QuotaTestCase(test.TestCase): metadata = {} for i in range(FLAGS.quota_metadata_items + 1): metadata['key%s' % i] = 'value%s' % i - self.assertRaises(quota.QuotaError, self.cloud.run_instances, + self.assertRaises(quota.QuotaError, compute.API().create, self.context, min_count=1, max_count=1, |
