'Test custom backend defined in this suite.'

def test_custom_backend(self):

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