def test_configuration(): settings.configure( MAILGUN_ACCESS_KEY=123, MAILGUN_SERVER_NAME='abc', MAILGUN_API_URL="https://example.org/", ) MailgunBackend()
def test_marker_methods(): # Already configured mb = MailgunBackend() assert mb.open() is None assert mb.close() is None
def test_no_configuration(): with raises(ImproperlyConfigured): MailgunBackend()
def setUp(): mb = MailgunBackend(fail_silently=True) message = EmailMessage() return (mb, message)
def test_configuration(): settings.configure(MAILGUN_ACCESS_KEY=123, MAILGUN_SERVER_NAME='abc') MailgunBackend()