'Check authorization for ccx coach users logged in without oauth'

def test_authorization_no_oauth_ccx_coach(self):

    data = {'display_name': 'CCX    Title'}
    self.client.login(username=self.coach.username, password=USER_PASSWORD)
    resp = self.client.get(self.detail_url)
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    resp = self.client.patch(self.detail_url, data, format='json')
    self.assertEqual(resp.status_code, status.HTTP_403_FORBIDDEN)
