diff --git a/tests/autobigs/engine/test_reading.py b/tests/autobigs/engine/test_reading.py index 0e9eed8..746fad6 100644 --- a/tests/autobigs/engine/test_reading.py +++ b/tests/autobigs/engine/test_reading.py @@ -4,4 +4,9 @@ from autobigs.engine.reading import read_fasta async def test_fasta_reader_not_none(): named_strings = await read_fasta("tests/resources/tohama_I_bpertussis.fasta") for named_string in named_strings: - assert named_string.name == "BX470248.1" + assert named_string.name is not None + +async def test_fasta_reader_name_contains_file_and_id(): + named_strings = await read_fasta("tests/resources/tohama_I_bpertussis.fasta") + for named_string in named_strings: + assert named_string.name == "tohama_I_bpertussis.fasta:BX470248.1"