Esempio n. 1
0
 def test_plant_tree(self):
     new_tree = plant_tree(TREE_PREFIX, TEST_ANUM + 1)
     self.assertTrue(is_healthy(new_tree))
     new_tree = plant_tree(TREE_PREFIX, TEST_ANUM + 1, state=OF)
     self.assertFalse(is_healthy(new_tree))
Esempio n. 2
0
 def setUp(self):
     self.test_tree = plant_tree(TREE_PREFIX, TEST_ANUM)
     set_up()
Esempio n. 3
0
 def test_plant_tree(self):
     new_tree = plant_tree(TEST_ANUM + 1)
     self.assertTrue(is_healthy(new_tree))
     new_tree = plant_tree(TEST_ANUM + 1, state=OF)
     self.assertFalse(is_healthy(new_tree))
Esempio n. 4
0
 def setUp(self):
     self.test_tree = plant_tree(TEST_ANUM)
     (ff.forest, ff.group_map) = set_up()
     ff.healthy += self.test_tree
     ff.forest.place_member(self.test_tree)
Esempio n. 5
0
 def setUp(self):
     self.test_tree = plant_tree(TEST_ANUM)
     (ff.forest, ff.group_map) = set_up()
     ff.healthy += self.test_tree
     ff.forest.place_member(self.test_tree)