Created
August 20, 2010 23:08
-
-
Save jgeewax/541378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from gaetestbed import MailTestCase | |
class MyTestCase(unittest.TestCase, MailTestCase): | |
def test_email_sent(self): | |
# Do something that sends an e-mail | |
send_email_to('test@example.org') | |
# Check that the e-mail was sent to somebody | |
self.assertEmailSent(to='test@example.org') | |
self.assertEqual(len(self.get_sent_messages()), 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment