'Test that command indexes all teams.'

@patch.object(CourseTeamIndexer, 'index')
def test_all_teams(self, mock_index):

    call_command('reindex_course_team', all=True)
    mock_index.assert_any_call(self.team1)
    mock_index.assert_any_call(self.team2)
    mock_index.assert_any_call(self.team3)
    mock_index.reset_mock()
