def setup_class(cls): script.Zone._initialize_zones() cls.ZONE = script.Zone.ZONES[0] cls.GRAPH = script.AgreeablenessGraph() cls.ZONES = script.Zone.ZONES for _ in range(0,10): cls.ZONE.add_inhabitant(script.Agent(script.Position(-180, -89), agreeableness=1))
def setup_method(self): script.Zone._initialize_zones() self.zone = script.Zone.ZONES[0] self.graph = script.AgreeablenessGraph() self.zones = script.Zone.ZONES for _ in range(0, 10): self.zone.add_inhabitant( script.Agent(script.Position(-180, -89), agreeableness=1))