'Test that an instructor cannot remove instructor privelages from themself.'

def test_modify_access_revoke_self(self):

    url = reverse('modify_access', kwargs={'course_id': self.course.id.to_deprecated_string()})
    response = self.client.post(url, {'unique_student_identifier': self.instructor.email, 'rolename': 'instructor', 'action': 'revoke'})
    self.assertEqual(response.status_code, 200)
    expected = {'unique_student_identifier': self.instructor.username, 'rolename': 'instructor', 'action': 'revoke', 'removingSelfAsInstructor': True}
    res_json = json.loads(response.content)
    self.assertEqual(res_json, expected)
