def METHOD_NAME(self, process_mock, send_smtp_mock):
    """The process_email command should email the admins on error in process_response_email"""
    # arrange an mock error during processing
    process_mock.side_effect = RuntimeError('mock error')
    with name_of_file_containing('contents') as filename:
        call_command('process_email', email_file=filename)
    self.assertTrue(send_smtp_mock.called)
    (msg,) = send_smtp_mock.call_args.args
    self.assertEqual(msg['to'], 'admin@example.com', 'Admins should be emailed on error')
    self.assertIn('error', msg['subject'].lower(), 'Error email subject should indicate error')
    self.assertTrue(msg.is_multipart(), 'Error email should have attachments')
    parts = msg.get_payload()
    self.assertEqual(len(parts), 3, 'Error email should contain message, traceback, and original message')
    # decode=True decodes the quoted-printable encoding, including removing soft linebreaks.
    # The .decode() converts the resulting octet-stream bytes to a string
    content = parts[0].get_payload(decode=True).decode()
    traceback = parts[1].get_payload(decode=True).decode()
    original = parts[2].get_payload(decode=True).decode()
    self.assertIn('RuntimeError', content, 'Error type should be included in error email')
    self.assertIn('mock.py', content, 'File where error occurred should be included in error email')
    self.assertIn('traceback', traceback.lower(), 'Traceback should be attached to error email')
    self.assertEqual(original, 'contents', 'Original message should be attached to error email')