def testAddingAChildDoesMakeAChild(self): tree = Tree().addChild(Tree()) actual = tree.hasChildren() self.assertTrue(actual)
def testDefaultNoChildren(self): tree = Tree() actual = tree.hasChildren() self.assertFalse(actual)