def _setup_test_data(self): super(MonitoringTestsMixin, self)._setup_test_data() test_data_utils.load_test_data(self) self.policy_patcher = mock.patch('openstack_auth.policy.check', lambda action, request: True) self.policy_check = self.policy_patcher.start()
def setUp(self): super(BaseAdminViewTests, self).setUp() # load tuskar-specific test data test_data_utils.load_test_data(self)
def setUp(self): super(APITestCase, self).setUp() # load tuskar-specfic test data test_data_utils.load_test_data(self)
def _setup_test_data(self): super(MonitoringTestsMixin, self)._setup_test_data() test_data_utils.load_test_data(self) self.policy_patcher = mock.patch( 'openstack_auth.policy.check', lambda action, request: True) self.policy_check = self.policy_patcher.start()