def test_create_jointree(self):
        order = ["slippery_road", "wet_grass", "sprinkler", "winter", "rain"]
        ft = FactorTree.create_jointree(self.bn, order=order)
        #As above, alternatives need to be contained as well for python3
        desiredCliques = ["slippery_roadrain", "wet_grasssprinklerrain", 
                          "wet_grassrainsprinkler", "sprinklerwinterrain", 
                          "sprinklerrainwinter", "wintersprinklerrain", 
                          "winterrainsprinkler", "rainsprinklerwinter", 
                          "rainwintersprinkler"]
        self.assertEqual(len(ft.tree), 3)
        for n in ft.tree.nodes(): # was nodes_iter in networkx 1.x
            self.assertTrue(n in desiredCliques)