def setUp(self): self.block = self.DashboardRootXBlockMixinGuineaPig() self.project_api_mock = get_mock_project_api() self.make_patch( self.DashboardRootXBlockMixinGuineaPig, 'project_api', mock.PropertyMock(return_value=self.project_api_mock) )
def setUp(self): """ Set Up method """ super(BaseIntegrationTest, self).setUp() self.project_api_mock = get_mock_project_api() patchers = self._set_up_global_patches() def cleanup(): for patcher in patchers: patcher.stop() self.addCleanup(cleanup)
def setUp(self): self.project_api_mock = get_mock_project_api() self.block = AuthXBlockMixinGuineaPig(self.project_api_mock)