def testExportFormats(self):
     """
     Tries to create a graph from a phylogeny and export it to
     GraphML and other formats.
     """
     phylo_graph = BioBayesGraph()
     phylo_file = os.path.dirname(os.path.realpath(__file__)) + '/example_data/Asp_protease_2.xml'
     tmp_file = StringIO()
     try:
         phylo_graph.populate_from_phyloxml(phylo_file)
         phylo_graph.export_as_graphml(tmp_file) 
     finally:
         tmp_file.close()