def test_min_degree_elimination_order(self):
        bn = XMLBIFParser.parse("primo2/tests/slippery.xbif")
        order = Orderer.get_min_degree_order(bn)
        #Test for all possible/equivalent orders since the actual order might is not
        #determined based on the random nature hash in Python3
        potentialOrders = [["slippery_road", "wet_grass", "sprinkler", "winter", "rain"], 
                           ["slippery_road", "wet_grass", "sprinkler", "rain", "winter"], 
                           ["slippery_road", "wet_grass", "rain", "sprinkler", "winter"],  
                           ["slippery_road", "wet_grass", "rain", "winter", "sprinkler"],
                           ["slippery_road", "wet_grass", "winter", "rain", "sprinkler"],
                           ["slippery_road", "wet_grass", "winter", "sprinkler", "rain"],             
                           ["slippery_road", "winter", "sprinkler", "wet_grass", "rain"],
                           ["slippery_road", "winter", "sprinkler", "rain", "wet_grass"], 
                           ["slippery_road", "winter", "rain", "sprinkler", "wet_grass"], 
                           ["slippery_road", "winter", "rain", "wet_grass", "sprinkler"], 
                           ["slippery_road", "winter", "wet_grass", "sprinkler", "rain"], 
                           ["slippery_road", "winter", "wet_grass", "rain", "sprinkler"],  
                           ["slippery_road", "sprinkler", "winter", "wet_grass", "rain"], 
                           ["slippery_road", "sprinkler", "winter", "rain", "wet_grass"],   
                           ["slippery_road", "sprinkler", "wet_grass", "winter", "rain"],
                           ["slippery_road", "sprinkler", "wet_grass", "rain", "winter"],   
                           ["slippery_road", "sprinkler", "rain", "winter", "wet_grass"],
                           ["slippery_road", "sprinkler", "rain", "wet_grass", "winter"], 
                           ["slippery_road", "rain", "wet_grass", "sprinkler", "winter"], 
                           ["slippery_road", "rain", "wet_grass", "winter", "sprinkler"],
                           ["slippery_road", "rain", "winter", "wet_grass", "sprinkler"], 
                           ["slippery_road", "rain", "winter", "sprinkler", "wet_grass"],
                           ["slippery_road", "rain", "sprinkler", "wet_grass", "winter"], 
                           ["slippery_road", "rain", "sprinkler", "winter", "wet_grass"]]
        self.assertTrue(order in potentialOrders)