@@ -0,0 +1,1380 @@
+# -*- coding: utf-8 -*-%0Aimport mock%0Aimport unittest%0A%0Aimport logic.email%0A%0A%0Aclass EmailTest(unittest.TestCase):%0A    %22%22%22We really just want to test that configuration is honored here.%22%22%22%0A%0A    sender = 'test@example.com'%0A    recipient = 'test@example.com'%0A    subject = 'test subject'%0A    html = '%3Cp%3Ehello test%3C/p%3E'%0A    text = 'hello test'%0A%0A    @mock.patch('logic.email.EMAIL_BACKENDS')%0A    @mock.patch('logic.email.config')%0A    def test_send_email_appengine(self, mock_config, mock_backends):%0A        mock_config.EMAIL_BACKEND = 'appengine'%0A        mock_backends%5B'appengine'%5D = mock.Mock()%0A        logic.email.send_email(self.sender, self.recipient, self.subject,%0A                               self.html, self.text)%0A        mock_backends%5B'appengine'%5D.assert_called_once_with(%0A            self.sender, self.recipient, self.subject, self.html, self.text%0A        )%0A%0A    @mock.patch('logic.email.EMAIL_BACKENDS')%0A    @mock.patch('logic.email.config')%0A    def test_send_email_sendgrid(self, mock_config, mock_backends):%0A        mock_config.EMAIL_BACKEND = 'sendgrid'%0A        mock_backends%5B'sendgrid'%5D = mock.Mock()%0A        logic.email.send_email(self.sender, self.recipient, self.subject,%0A                               self.html, self.text)%0A        mock_backends%5B'sendgrid'%5D.assert_called_once_with(%0A            self.sender, self.recipient, self.subject, self.html, self.text%0A        )%0A

Add test for email logic (just config)