I'm doing that at the moment:
try:
self.assertIsNotNone(a)
except AssertionError:
try:
self.assertIsNotNone(b)
except AssertionError:
try:
self.assertIsNotNone(c)
except AssertionError:
self.assertIsNotNone(d)
(any of these assertions should pass)
How to do that better?
Aucun commentaire:
Enregistrer un commentaire