Example #1
0
 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()
Example #2
0
    def setUp(self):
        super(BaseAdminViewTests, self).setUp()

        # load tuskar-specific test data
        test_data_utils.load_test_data(self)
Example #3
0
    def setUp(self):
        super(APITestCase, self).setUp()

        # load tuskar-specfic test data
        test_data_utils.load_test_data(self)
Example #4
0
 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()