diff options
author | 2012-01-12 17:26:28 +0100 | |
---|---|---|
committer | 2012-01-12 17:26:28 +0100 | |
commit | 692d015627ecf03fbc23cfdb4afcf398b9a09a51 (patch) | |
tree | 3a3b65808c37aecd4d270b3d40850ae52f33a355 /tests/test_json.py | |
parent | changed HEAD request (diff) | |
download | pyload-692d015627ecf03fbc23cfdb4afcf398b9a09a51.tar.xz |
scripts for testing and syntax unit test
Diffstat (limited to 'tests/test_json.py')
-rw-r--r-- | tests/test_json.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_json.py b/tests/test_json.py index ff56e8f5a..4e8fb0e1f 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -5,7 +5,6 @@ from urllib2 import urlopen, HTTPError from json import loads from logging import log - url = "http://localhost:8001/api/%s" class TestJson: @@ -17,7 +16,7 @@ class TestJson: return loads(u.read()) def setUp(self): - u = urlopen(url % "login", data=urlencode({"username": "TestUser", "password": "pwhere"})) + u = urlopen(url % "login", data=urlencode({"username": "TestUser", "password": "sometestpw"})) self.key = loads(u.read()) assert self.key is not False @@ -45,4 +44,4 @@ class TestJson: except HTTPError, e: assert e.code == 404 else: - assert False
\ No newline at end of file + assert False |