'Test custom backend defined in this suite.'

def test_custom_backend(self):

    conn = mail.get_connection('mail.custombackend.EmailBackend')
    self.assertTrue(hasattr(conn, 'test_outbox'))
    email = EmailMessage('Subject', 'Content', 'bounce@example.com', ['to@example.com'], headers={'From': 'from@example.com'})
    conn.send_messages([email])
    self.assertEqual(len(conn.test_outbox), 1)
