jeudi 30 juillet 2015

How do you check for a string in a Python unit test?

I recently started to write unit test in python, and I am still not clear how do you actually work with the various assert.

I know the assertTrue, but what if I want to verify that a function return a specific string? assertTrue won't work because it just check for True or False, not for the string.

Aucun commentaire:

Enregistrer un commentaire