def setUp(cls): casa_mock.mock() settings._get_config = settings.get_config def fake_config(): class FakeConfig(object): servers = ["127.0.0.1:9160"] username = "******" password = "******" connection_timeout = 42 return FakeConfig() settings.get_config = fake_config
def setUp(cls): fiveconfigure.debug_mode = True ztc.installPackage(collective.atcassandrastorage) fiveconfigure.debug_mode = False casa_mock.mock() settings._get_config = settings.get_config def fake_config(): class FakeConfig(object): servers = ["127.0.0.1:9160"] username = "******" password = "******" connection_timeout = 42 return FakeConfig() settings.get_config = fake_config