
from oslo.config import cfg

from solum.openstack.common import test


class BaseTestCase(test.BaseTestCase):
    """Test base class."""

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.addCleanup(cfg.CONF.reset)


from oslo.config import cfg
import testscenarios

from solum.openstack.common import test


class BaseTestCase(testscenarios.WithScenarios, test.BaseTestCase):
    """Test base class."""

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.addCleanup(cfg.CONF.reset)

Support testscenarios by default in BaseTestCase
Support testscenarios by default in BaseTestCase

This allows one to use the scenario framework easily
from any test class.

Change-Id: Ie736138fe2d1e1d38f225547dde54df3f4b21032

  
  from oslo.config import cfg
+ import testscenarios
  
  from solum.openstack.common import test
  
  
- class BaseTestCase(test.BaseTestCase):
+ class BaseTestCase(testscenarios.WithScenarios, test.BaseTestCase):
      """Test base class."""
  
      def setUp(self):
          super(BaseTestCase, self).setUp()
          self.addCleanup(cfg.CONF.reset)
  
Support testscenarios by default in BaseTestCase
## Code Before:

from oslo.config import cfg

from solum.openstack.common import test


class BaseTestCase(test.BaseTestCase):
    """Test base class."""

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.addCleanup(cfg.CONF.reset)

## Instruction:
Support testscenarios by default in BaseTestCase
## Code After:

from oslo.config import cfg
import testscenarios

from solum.openstack.common import test


class BaseTestCase(testscenarios.WithScenarios, test.BaseTestCase):
    """Test base class."""

    def setUp(self):
        super(BaseTestCase, self).setUp()
        self.addCleanup(cfg.CONF.reset)
