Exemplo n.º 1
0
 def setUp(self, props=None):
     set_up()
     self.wolf = create_wolf(TEST_WNAME, TEST_WNUM)
     self.sheep = create_sheep(TEST_SNAME, TEST_SNUM)
     self.wolves = get_group(WOLF_GROUP)
     self.wolves += self.wolf
     # make a new plural for sheep!
     self.sheeps = get_group(SHEEP_GROUP)
     self.sheeps += self.sheep
     get_env().place_member(self.sheep, None)
     get_env().place_member(self.wolf, None)
Exemplo n.º 2
0
 def setUp(self):
     (ws.wolves, ws.sheep, ws.meadow) = set_up()
     self.wolf = create_wolf(TEST_WNUM)
     self.sheep = create_sheep(TEST_SNUM)
Exemplo n.º 3
0
 def setUp(self):
     (ws.wolves, ws.sheep, ws.meadow) = set_up()
     self.wolf = create_wolf(TEST_WNUM)
     self.sheep = create_sheep(TEST_SNUM)
Exemplo n.º 4
0
 def setUp(self):
     self.pa = PropArgs.create_props('wolfsheep_props',
                                     ds_file='props/wolfsheep.props.json')
     (ws.wolves, ws.sheep, ws.meadow) = set_up()
     self.wolf = create_wolf(TEST_WNUM, self.pa)
     self.sheep = create_sheep(TEST_SNUM, self.pa)