'Scenario: User should see `You are already in a team` if user is a
member of other team.
Given I am enrolled in a course with a team configuration, a topic,
and a team belonging to that topic
And I am already a member of a team
And I visit a team other than mine
Then I should see `You are already in a team` message'

def test_already_member_message(self):

    self._set_team_configuration_and_membership(membership_team_index=0, visit_team_index=1)
    self.team_page.visit()
    self.assertEqual(self.team_page.join_team_message, 'You    already    belong    to    another    team.')
    self.assert_team_details(num_members=0, is_member=False)
