pierrepo / PBxplore

A suite of tools to explore protein structures with Protein Blocks :snake:
https://pbxplore.readthedocs.org/en/latest/
MIT License
28 stars 17 forks source link

Ignore the content of lines which starts by a comment when comparing files #89

Closed HubLot closed 8 years ago

HubLot commented 8 years ago

When comparing files, it can be useful to ignore the content of lines which start by a comment as long as the comment is present of both files in the same line.

Hence, the optional argument comment_char has been added to _same_file_content and _assert_identical_files. The default value has been set to ">" which correspond to the header of fasta files. Indeed, right now, the content of those headers is the path of the file which can differ when comparing 2 files without having different contents. (This will be true when the tests will be moved to the package).

By using this default value, it offers the possibility to set it to another value without touching the rest of the tests.