mardi 7 juillet 2015

How to properly make unit tests for file parser?

I have Python module which parses text file. I need to write unit tests and check different cases. How to do this properly?

Do I need to create temporary file with some data? Or do I need just save some tested text to string and parse string? Or maybe there are some better ways to write unit test for this case?

Aucun commentaire:

Enregistrer un commentaire