'Check authorization for coach users logged in without oauth'

def test_authorization_no_oauth(self):

    coach_user = UserFactory(username='test_coach_user', email='test_coach_user@openedx.org', password=USER_PASSWORD)
    CourseCcxCoachRole(self.master_course_key).add_users(coach_user)
    data = {'master_course_id': self.master_course_key_str, 'max_students_allowed': 111, 'display_name': 'CCX    Test    Title', 'coach_email': self.coach.email}
    self.client.login(username=coach_user.username, password=USER_PASSWORD)
    resp = self.client.get(self.list_url_master_course)
    self.assertEqual(resp.status_code, status.HTTP_403_FORBIDDEN)
    resp = self.client.post(self.list_url, data, format='json')
    self.assertEqual(resp.status_code, status.HTTP_403_FORBIDDEN)
