~justin-fathomdb/nova/schedule-compute-near-volume

« back to all changes in this revision

Viewing changes to nova/tests/api/openstack/test_flavors.py

Make tests start with a clean database for every test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#    License for the specific language governing permissions and limitations
16
16
#    under the License.
17
17
 
18
 
import unittest
19
 
 
20
18
import stubout
21
19
import webob
22
20
 
 
21
from nova import test
23
22
import nova.api
24
23
from nova.api.openstack import flavors
25
24
from nova.tests.api.openstack import fakes
26
25
 
27
26
 
28
 
class FlavorsTest(unittest.TestCase):
 
27
class FlavorsTest(test.TestCase):
29
28
    def setUp(self):
 
29
        super(FlavorsTest, self).setUp()
30
30
        self.stubs = stubout.StubOutForTesting()
31
31
        fakes.FakeAuthManager.auth_data = {}
32
32
        fakes.FakeAuthDatabase.data = {}
36
36
 
37
37
    def tearDown(self):
38
38
        self.stubs.UnsetAll()
 
39
        super(FlavorsTest, self).tearDown()
39
40
 
40
41
    def test_get_flavor_list(self):
41
42
        req = webob.Request.blank('/v1.0/flavors')
43
44
 
44
45
    def test_get_flavor_by_id(self):
45
46
        pass
46
 
 
47
 
if __name__ == '__main__':
48
 
    unittest.main()