Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Fix last tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frabcus committed Apr 1, 2015
1 parent cdcecfc commit e60b37e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def test_email_candidates(self):

# Email two candidates
r = self.app.get('/email_candidates/8888888')
self.assertIn('Ask candidates to share their CV', r.get_data(True))
self.assertIn('Email Democracy Club Test Constituency', r.get_data(True))
self.assertIn('Ask them to share their CV', r.get_data(True))
self.assertIn('frabcus+notlits@fastmail.fm, frabcus+ojom@fastmail.fm', r.get_data(True))
self.assertIn('action="/email_candidates/8888888"', r.get_data(True))

Expand Down Expand Up @@ -210,7 +211,7 @@ def test_tweet_candidates(self):

# Option to tweet one candidates
r = self.app.get('/tweet_candidates/8888888')
self.assertIn('Tweet each candidate in turn', r.get_data(True))
self.assertIn('Tweet to Democracy Club Test Constituency', r.get_data(True))
self.assertIn('Tweet @frabcus+notlits', r.get_data(True))
self.assertNotIn('Tweet @frabcus+sicnarf', r.get_data(True))

Expand Down

0 comments on commit e60b37e

Please sign in to comment.