def tearDown(self): """ Clean up the test """ test_utils.clean_resources_db() test_utils.clean_storage() test_utils.clean_user_db() test_utils.clean_stats()
def setUp(self): """ Import test fixtures and add resource pairs to TogetherManager """ test_utils.setup_test_storage() test_utils.clean_stats() self.res_1 = _import_downloadable_resource('elra112.xml') self.res_2 = _import_downloadable_resource('elra135.xml') self.res_3 = _import_downloadable_resource('elra260.xml') self.res_4 = _import_downloadable_resource('elra295.xml') create_user('normaluser', '*****@*****.**', 'secret') create_user('normaluser2', '*****@*****.**', 'secret')