'Verifies that a user without global access who is enrolled in the course cannot access the team dashboard
if the teams feature is not enabled.'

def test_enrolled_teams_not_enabled(self):

    course = CourseFactory.create()
    teams_url = reverse('teams_dashboard', args=[course.id])
    CourseEnrollmentFactory.create(user=self.user, course_id=course.id)
    self.client.login(username=self.user.username, password=self.test_password)
    response = self.client.get(teams_url)
    self.assertEqual(404, response.status_code)
