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

def test_dummy_backend(self):

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