Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /ForgeMail/forgemail/tests/test_sendmail.py [93233c] .. [98dec2] Maximize Restore

  Switch to side-by-side view

--- a/ForgeMail/forgemail/tests/test_sendmail.py
+++ b/ForgeMail/forgemail/tests/test_sendmail.py
@@ -124,6 +124,17 @@
         assert args[0] == 'noreply@sourceforge.net'
         assert '"Rick Copeland" <test@example.com>' in args[2]
 
+    def test_bad_user(self):
+        addr = 'test@example.com'
+        common_react.send_email(None, {
+                'from':addr,
+                'reply_to':addr,
+                'destinations':[None],
+                'message_id':'test@example.com',
+                'subject':'Test message',
+                'text':'Test message'})
+        assert not self.sendmail.called
+
     def test_user_unicode(self):
         u = M.User.by_username('test-admin')
         u.set_pref('display_name', u'Rick CopĂŠland')