def setUp(self):
super(TestConsentAPIPermissions, self).setUp()<EOL>discovery_client_class = mock.patch('<STR_LIT>')<EOL>self.discovery_client = discovery_client_class.start().return_value<EOL>self.discovery_client.is_course_in_catalog.return_value = True<EOL>self.addCleanup(discovery_client_class.stop)<EOL>factories.DataSharingConsentFactory.create(<EOL>course_id=TEST_COURSE,<EOL>username=TEST_USERNAME,<EOL>enterprise_customer__uuid=TEST_UUID<EOL>)<EOL>
Perform operations common to all tests.