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

Commit

Permalink
Here's a failing test for #2978
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 3, 2014
1 parent 3112863 commit a9e4c80
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/py/fixtures/TestElsewhere.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
interactions:
- request:
body: null
headers: {}
method: GET
uri: https://api.twitter.com:443/1.1/users/show.json?screen_name=nmjhgfcftyuikjnbvftyujhbgtfgh
response:
body:
string: !!binary |
H4sIAAAAAAAAAKpWSi0qyi8qVrKKrlbKTS0uTkxPVbJSCs4vKqrUUSjJSCxRKAAKKaTkpxYr5OWX
KKRWZBaXKOkoJeenABUam9TG1gIAAAD//wMAke1ZcEQAAAA=
headers:
cache-control: ['no-cache, no-store, must-revalidate, pre-check=0, post-check=0']
content-encoding: [gzip]
content-length: ['92']
content-type: [application/json;charset=utf-8]
expires: ['Tue, 31 Mar 1981 05:00:00 GMT']
last-modified: ['Wed, 03 Dec 2014 17:19:23 GMT']
pragma: [no-cache]
set-cookie: ['guest_id=v1%3A141762716382867775; Domain=.twitter.com; Path=/;
Expires=Fri, 02-Dec-2016 17:19:23 UTC']
status: [404 Not Found]
strict-transport-security: [max-age=631138519]
status: {code: 404, message: Not Found}
version: 1
5 changes: 5 additions & 0 deletions tests/py/test_elsewhere.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@ def test_user_pages(self):
response = self.client.GET('/on/%s/alice/' % platform.name)
assert response.code == 200
assert 'has not joined' in response.body.decode('utf8')


def test_failure_page_requires_valid_username(self):
response = self.client.GxT('/on/twitter/nmjhgfcftyuikjnbvftyujhbgtfgh/failure.html?action')
assert response.code == 404

0 comments on commit a9e4c80

Please sign in to comment.