def setUp(self): #maxDiff=None ensures diff output of assert methods are not truncated self.maxDiff = None self.mock = mox.Mox() conf, reddwarf_app = config.Config.load_paste_app('reddwarfapp', {"config_file": test_config_file()}, None) db_api.configure_db(conf) db_api.clean_db() super(BaseTest, self).setUp()
def setUp(self): options = { 'sql_connection' : SQL_CONNECTION } db_api.configure_db(options) config.Config.instance = { "rabbit_host" : RABBIT_HOST, "rabbit_userid" : RABBIT_USER, "rabbit_password" : RABBIT_PASSWORD, "rabbit_virtual_host" : "/", "rabbit_port" : "5671", "rabbit_use_ssl" : "True" } super(DistributedCreateTest, self).setUp()
def setUp(self): #maxDiff=None ensures diff output of assert methods are not truncated self.maxDiff = None self.mock = mox.Mox() conf, reddwarf_app = config.Config.load_paste_app( 'reddwarfapp', {"config_file": test_config_file()}, None) db_api.configure_db(conf) db_api.clean_db() super(BaseTest, self).setUp()