Ejemplo 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))
Ejemplo n.º 2
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))
Ejemplo n.º 3
0
 def test_is_healthy(self):
     """
     See if target tree is healthy.
     All trees should start out healthy!
     """
     self.assertTrue(is_healthy(self.test_tree))
Ejemplo n.º 4
0
 def test_is_healthy(self):
     """
     See if target tree is healthy.
     All trees should start out healthy!
     """
     self.assertTrue(is_healthy(self.test_tree))