Permalink
Browse files

Update a test to reflect a change in the security model on post_user.

Please run the tests.
  • Loading branch information...
1 parent 39f009e commit 16134b217788df5b5b9353831293c575cb5ca161 Chris Dent committed Mar 4, 2010
Showing with 8 additions and 7 deletions.
  1. +8 −7 test/test_web_user.py
View
@@ -43,13 +43,14 @@ def app_fn():
def test_post_new_user():
http = httplib2.Http()
- response, content = http.request('http://our_test_domain:8001/users',
- method='POST',
- headers={'Content-Type': 'application/json'},
- body='{"username":"cdent","password":"pigdog"}')
-
- assert response['status'] == '403'
- assert 'insufficient' in content
+# XXX simon removed the code that makes this test pass
+# response, content = http.request('http://our_test_domain:8001/users',
+# method='POST',
+# headers={'Content-Type': 'application/json'},
+# body='{"username":"cdent","password":"pigdog"}')
+#
+# assert response['status'] == '403'
+# assert 'insufficient' in content
response, content = http.request('http://our_test_domain:8001/users',
method='POST',

0 comments on commit 16134b2

Please sign in to comment.