Permalink
Browse files

This was previously getting created but with the wrong user, not its …

…apropriately 401ing.
  • Loading branch information...
1 parent 56aa5d0 commit 506de0e64627614180f59b2bdbee0cb239490c13 @ericholscher ericholscher committed May 9, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 readthedocs/rtd_tests/tests/test_api.py
@@ -89,12 +89,7 @@ def test_make_project_dishonest_user(self):
content_type='application/json',
HTTP_AUTHORIZATION='Basic %s' % base64.b64encode('tester:test')
)
- self.assertEqual(resp.status_code, 201)
- resp = self.client.get(resp['location'].split("testserver")[1],
- data={'format':'json'},
- HTTP_AUTHORIZATION='Basic %s' % base64.b64encode('tester:test')
- )
- self.assertEqual(["/api/v1/user/2/",], json.loads(resp.content)["users"])
+ self.assertEqual(resp.status_code, 401)
def test_ensure_get_unauth(self):
"""

0 comments on commit 506de0e

Please sign in to comment.