From 8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 23 Jan 2013 09:59:46 -0500 Subject: Replace direct use of testtools BaseTestCase. Using the BaseTestCase across the tests in the tree lets us put in log fixtures and consistently handle mox and stubout. Part of blueprint grizzly-testtools. Change-Id: Iba7eb2c63b0c514009b2c28e5930b27726a147b0 --- tests/unit/scheduler/test_weights.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/unit/scheduler/test_weights.py') diff --git a/tests/unit/scheduler/test_weights.py b/tests/unit/scheduler/test_weights.py index ca61c00..76c62ba 100644 --- a/tests/unit/scheduler/test_weights.py +++ b/tests/unit/scheduler/test_weights.py @@ -16,13 +16,12 @@ Tests For Scheduler weights. """ -import testtools - from openstack.common.scheduler import weight from tests.unit import fakes +from tests import utils -class TestWeightHandler(testtools.TestCase): +class TestWeightHandler(utils.BaseTestCase): def test_get_all_classes(self): namespace = "openstack.common.tests.fakes.weights" handler = weight.BaseWeightHandler(weight.BaseWeigher, namespace) -- cgit