'Set up tests.'

def setUp(self):

    super(TeamMembershipTest, self).setUp()
    self.user1 = UserFactory.create(username='user1')
    self.user2 = UserFactory.create(username='user2')
    self.user3 = UserFactory.create(username='user3')
    for user in (self.user1, self.user2, self.user3):
        CourseEnrollmentFactory.create(user=user, course_id=COURSE_KEY1)
    CourseEnrollmentFactory.create(user=self.user1, course_id=COURSE_KEY2)
    self.team1 = CourseTeamFactory(course_id=COURSE_KEY1, team_id='team1')
    self.team2 = CourseTeamFactory(course_id=COURSE_KEY2, team_id='team2')
    self.team_membership11 = self.team1.add_user(self.user1)
    self.team_membership12 = self.team1.add_user(self.user2)
    self.team_membership21 = self.team2.add_user(self.user1)
