You can use assertIn here which gives a relevant default fail message.