Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Shelve
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 10, 2017
1 parent 190123f commit 311525c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ttw/test_homepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,12 @@ def test_anon_can_post(self):
def test_optional_are_optional(self):
self.fill_form('537', '4242424242424242', '1020', '123')
assert self.submit_succeeds()

def test_errors_are_handled(self):
self.fill_form('1,000', '4242424242424242', '1020', '123',
'deadbeef' * 5, 'Alice Liddell' * 20,
'alice' * 100 + '@example.com', 'Wonderland' * 20,
'http://www.example.com/' + 'cheese' * 100, 'thebestbutter' * 10,
'Love me!' * 50)
self.css('fieldset.submit button').click()
self.wait_for('.payment-complete', 10)

0 comments on commit 311525c

Please sign in to comment.