9
class TestCase(testtools.TestCase, django.test.TestCase):
10
"""`TestCase` for Metal as a Service.
12
Supports test resources and fixtures.
15
# testresources.ResourcedTestCase does something similar to this class
16
# (with respect to setUpResources and tearDownResources) but it explicitly
17
# up-calls to unittest.TestCase instead of using super() even though it is
18
# not guaranteed that the next class in the inheritance chain is
24
super(TestCase, self).setUp()
27
def setUpResources(self):
28
testresources.setUpResources(
29
self, self.resources, testresources._get_result())
32
self.tearDownResources()
33
super(TestCase, self).tearDown()
35
def tearDownResources(self):
36
testresources.tearDownResources(
37
self, self.resources, testresources._get_result())