'Check that the email outbox contains exactly one message for which both
the message subject and body contain a certain string.'

def check_outbox(self, expected_message):

    self.assertEqual(1, len(mail.outbox))
    self.assertIn(expected_message, mail.outbox[0].subject)
    self.assertIn(expected_message, mail.outbox[0].body)
