def testInit2(self):
     pageTree = PageTree("http://testingInit2/")
     pageTree.createPageNode("http://www.xkcd.com/apic.jpg", 1, parent = 0)
     pageTree.createPageNode("http://www.xkcd.com/style.css", 2, parent = 0)
     return pageTree
 def testInit(self):
     pageTree = PageTree(None)
     pageTree.createPageNode("http://www.xkcd.com", 0)  # root node
     pageTree.createPageNode("http://www.xkcd.com/apic.jpg", 1, parent = 0)
     pageTree.createPageNode("http://www.xkcd.com/style.css", 2, parent = 0)
     pageTree.createPageNode("Joe", 3, parent = 1)
     pageTree.createPageNode("Diane", 4, parent = 2)
     pageTree.createPageNode("George", 5, parent = 4)
     pageTree.createPageNode("Mary", 6, parent = 2)
     pageTree.createPageNode("Jill", 7, parent = 5)
     pageTree.createPageNode("Carol", 8, parent = 7)
     pageTree.createPageNode("Grace", 9, parent = 2)
     pageTree.createPageNode("Mark", 10, parent = 1)
     return pageTree