tempest/api/baremetal/base.py
def tearDownClass(cls):
        """Ensure that all created objects get destroyed."""

        try:
            for resource, uuids in cls.created_objects.iteritems():
                delete_method = getattr(cls.client, 'delete_%s' % resource)
                for u in uuids:
                    delete_method(u, ignore_errors=exc.NotFound)
        finally:
            super(BaseBaremetalTest, cls).tearDownClass()
Ensure that all created objects get destroyed.
Ensure that all created objects get destroyed.
Ensure that all created objects get destroyed .
def tearDownClass(cls):
        try:
            for resource, uuids in cls.created_objects.iteritems():
                delete_method = getattr(cls.client, 'delete_%s' % resource)
                for u in uuids:
                    delete_method(u, ignore_errors=exc.NotFound)
        finally:
            super(BaseBaremetalTest, cls).tearDownClass()
def tearDownClass ( cls ) : try : for resource , uuids in cls . created_objects . iteritems ( ) : delete_method = getattr ( cls . client , 'delete_%s' % resource ) for u in uuids : delete_method ( u , ignore_errors = exc . NotFound ) finally : super ( BaseBaremetalTest , cls ) . tearDownClass ( )
Ensure that all created objects get destroyed.
Ensure that all created objects get destroyed .
"""Ensure that all created objects get destroyed."""
cls