samedi 7 avril 2018

Python unit test with condition for two results

i have easy test for testing of content of variable

self.assertEqual(t, b'wwe100.wwe.com')

But i need to make assertEqual for several variants, like condition. At least i alos need to have this self.assertEqual(t, b'njpw100.njpw.org') too. How can i do this ? Thanks for your help.

Aucun commentaire:

Enregistrer un commentaire