'Make sure that dummy backends returns correct number of sent messages'

def test_dummy_backend(self):

    connection = dummy.EmailBackend()
    email = EmailMessage(u'Subject', u'Content', u'bounce@example.com', [u'to@example.com'], headers={u'From': u'from@example.com'})
    self.assertEqual(connection.send_messages([email, email, email]), 3)
