#NEWLINE# def enemy_team( self , team_index ) : #NEWLINE# #INDENT# " Obtain the enemy team.\n\n        Parameters\n        ----------\n        team_index : int\n            the index of the 'friendly' team\n\n        Returns\n        -------\n        enemy_team : Team object\n\n        Raises\n        ------\n        UniverseException\n            if there is more than one enemy team\n        " #NEWLINE# other_teams = self . teams [ : ] #NEWLINE# other_teams . remove ( self . teams [ team_index ] ) #NEWLINE# if ( len ( team_index ) != 1 ) : #NEWLINE# #INDENT# raise UniverseException ( ( 'Expecting one enemy team. Found %i.' % len ( other_teams ) ) ) #NEWLINE# #UNINDENT# return other_teams [ 0 ]