<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def team_districts(self, team):
 """ Get districts a team has competed in. :param team: Team to get data on. :return: List of District objects. """

        return [District(raw) for raw in self._get('team/%s/districts' % self.team_key(team))]