This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77d2aa2
commit b186161
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,13 +69,14 @@ def test_that_claimed_packages_can_be_given_to(self): | |
'Thank you so much for supporting foo!' | ||
|
||
|
||
def test_visiting_verify_link_shows_packages_newly_claimed(self): | ||
def test_visiting_verify_link_shows_helpful_information(self): | ||
self.make_package() | ||
self.check() | ||
|
||
link = pickle.loads(self.db.one('select context from email_queue'))['link'] | ||
link = link[len(self.base_url):] # strip because visit will add it back | ||
|
||
self.sign_in('alice') | ||
self.visit(link) | ||
assert self.css('.withdrawal-notice a').text == 'update' | ||
assert self.css('.withdrawal-notice b').text == '[email protected]' | ||
assert self.css('.listing-name').text == 'foo' |
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