def test_original_tree_with_two_nodes_switched_tree_rf_distance(self): """Rf weighted distance of original tree and a duplicate tree with two nodes switched""" result = compare_two_trees.robinson_foulds_distance(self.orig_tree, self.two_nodes_switched_tree) self.assertEqual("%.2f" % 4.0, "%.2f" % result)
def test_original_tree_with_duplicate_tree_rf_distance(self): """Rf weighted distance of original tree and duplicate tree""" result = compare_two_trees.robinson_foulds_distance(self.orig_tree, self.same_tree) self.assertEqual(0.0, result)