Exemple #1
0
    def testAddingAChildDoesMakeAChild(self):
        tree = Tree().addChild(Tree())

        actual = tree.hasChildren()

        self.assertTrue(actual)
Exemple #2
0
    def testDefaultNoChildren(self):
        tree = Tree()

        actual = tree.hasChildren()
        
        self.assertFalse(actual)