'Test certificates exception addition api endpoint returns success status and updated certificate exception data
when called with valid course key and certificate exception data'

def test_certificate_exception_added_successfully(self):

    response = self.client.post(self.url, data=json.dumps(self.certificate_exception), content_type='application/json')
    self.assertEqual(response.status_code, 200)
    certificate_exception = json.loads(response.content)
    self.assertEqual(certificate_exception['user_email'], self.user.email)
    self.assertEqual(certificate_exception['user_name'], self.user.username)
    self.assertEqual(certificate_exception['user_id'], self.user.id)
