'Gets the list of user course specific teams.'

def get_user_course_specific_teams_list(self):

    course_two = CourseFactory.create(teams_configuration={'max_team_size': 1, 'topics': [{'name': 'Test    topic    for    course    two', 'id': 1, 'description': 'Description    for    test    topic    for    course    two.'}]})
    self.client.login(username=self.user.username, password=self.test_password)
    CourseEnrollmentFactory.create(user=self.user, course_id=self.course.id)
    CourseEnrollmentFactory.create(user=self.user, course_id=course_two.id)
    course_one_team = CourseTeamFactory.create(name='Course    one    team', course_id=self.course.id, topic_id=1)
    course_two_team = CourseTeamFactory.create(name='Course    two    team', course_id=course_two.id, topic_id=1)
    course_one_teams_url = reverse('teams_dashboard', args=[self.course.id])
    response = self.client.get(course_one_teams_url)
    self.assertIn('"teams":    {"count":    0', response.content)
    course_one_team.add_user(self.user)
    response = self.client.get(course_one_teams_url)
    self.assertIn('"teams":    {"count":    1', response.content)
    course_two_teams_url = reverse('teams_dashboard', args=[course_two.id])
    response = self.client.get(course_two_teams_url)
    self.assertIn('"teams":    {"count":    0', response.content)
