'Verify that team counts are scoped within a course.'

def test_scoped_within_course(self):

    teams_per_topic = 10
    first_course_topics = self.setup_topics(num_topics=self.NUM_TOPICS, teams_per_topic=teams_per_topic)
    duplicate_topic = first_course_topics[0]
    second_course = CourseFactory.create(teams_configuration={'max_team_size': 10, 'topics': [duplicate_topic]})
    CourseTeamFactory.create(course_id=second_course.id, topic_id=duplicate_topic[u'id'])
    self.assert_serializer_output(first_course_topics, num_teams_per_topic=teams_per_topic, num_queries=1)
