test that everything's chimpy

pull/1/head
eric 2013-03-04 17:19:39 -05:00
parent 14a6803b9f
commit 392a275ded
1 changed files with 10 additions and 1 deletions

View File

@ -693,5 +693,14 @@ class LocaldatetimeTest(TestCase):
else:
reload(localdatetime)
class MailingListTests(TestCase):
#mostly to check that MailChimp account is setp correctly
def test_mailchimp(self):
from postmonkey import PostMonkey
pm = PostMonkey(settings.MAILCHIMP_API_KEY)
self.assertEqual(pm.ping(),"Everything's Chimpy!" )
self.user = User.objects.create_user('chimp_test', 'eric@gluejar.com', 'chimp_test')
self.assertTrue(self.user.profile.on_ml)