There is no tearDownClass because there are no images created in the setUpClass method. Test methods that create images must clean up after themselves.
Each test method (such as test_create_delete_image() should be changed to use the following strategy:
def test_blah(self):
try:
# Create servers and/or images
# Test what needs to be tested
finally:
# Delete servers and images as needed
There is no tearDownClass because there are no images created in the setUpClass method. Test methods that create images must clean up after themselves.
Each test method (such as test_create_ delete_ image() should be changed to use the following strategy:
def test_blah(self):
try:
# Create servers and/or images
# Test what needs to be tested
finally:
# Delete servers and images as needed