Unit Testing of parser method using pytest
I'm not familiar using py.test, but here are some comments I have after reading your code:


There are no comments - this would be helpful to the reader.
In text_parser, you have from tparse import TextParser. I would advise moving this import to the top of the file, for readability.
What is your code trying to do with these tests? What are you testing?