def test_rank_code(): assert metagenomics.rank_code('species') == 'S' assert metagenomics.rank_code('genus') == 'G' assert metagenomics.rank_code('superkingdom') == 'D' assert metagenomics.rank_code('nonexist') == '-'