'Test that raises CommandError for invalid team id.'

def test_given_invalid_team_id_raises_command_error(self):

    team_id = u'team4'
    error_str = 'Argument    {0}    is    not    a    course_team    team_id'.format(team_id)
    with self.assertRaisesRegexp(CommandError, error_str):
        call_command('reindex_course_team', team_id)
