def METHOD_NAME(self, handle_method):
    handle_method.side_effect = CommandError('error during the command')
    empty_outbox()
    admins = (
        ('admin one', 'admin1@example.com'),
        ('admin two', 'admin2@example.com'),
    )
    with override_settings(ADMINS=admins, SERVER_EMAIL='server@example.com'):
        call_command(EmailOnFailureCommand())
    self.assertEqual(len(outbox), 1)
    msg = outbox[0]
    self.assertEqual(msg['to'], 'admin1@example.com, admin2@example.com',
                     'Outgoing email recipients did not default to settings.ADMINS')
    self.assertEqual(msg['from'], 'server@example.com',
                     'Outgoing email sender did not default to settings.SERVER_EMAIL')
    self.assertTrue(msg.is_multipart())
    parts = msg.get_payload()
    self.assertEqual(len(parts), 2)
    self.assertIn('error during the command', parts[0].get_content())
    self.assertIn('error during the command', parts[1].get_content())
    self.assertIn('Traceback', parts[1].get_content())