Exemplo n.º 1
0
 def setUp(self):
     """
     Set up common policy mocks.
     """
     super(OnePolicyTestCase, self).setUp()
     self.mock_controller = patch(self, 'otter.rest.policies.controller')
     setup_mod_and_trigger(self)
Exemplo n.º 2
0
 def setUp(self):
     """
     Set up common policy mocks.
     """
     super(OnePolicyTestCase, self).setUp()
     self.mock_controller = patch(self, 'otter.rest.policies.controller')
     setup_mod_and_trigger(self)
Exemplo n.º 3
0
 def setUp(self):
     """
     Set up webhook specific mocks.
     """
     super(OneWebhookTestCase, self).setUp()
     self.mock_controller = patch(self, 'otter.rest.webhooks.controller')
     setup_mod_and_trigger(self)
     self.mock_group.uuid = self.group_id
Exemplo n.º 4
0
 def setUp(self):
     """
     Set up webhook specific mocks.
     """
     super(OneWebhookTestCase, self).setUp()
     self.mock_controller = patch(self, 'otter.rest.webhooks.controller')
     setup_mod_and_trigger(self)
     self.mock_group.uuid = self.group_id
Exemplo n.º 5
0
 def setUp(self):
     super(GroupConfigTestCase, self).setUp()
     self.mock_controller = patch(self, "otter.rest.configs.controller")
     setup_mod_and_trigger(self)
Exemplo n.º 6
0
 def setUp(self):
     super(GroupConfigTestCase, self).setUp()
     self.mock_controller = patch(self, "otter.rest.configs.controller")
     setup_mod_and_trigger(self)