diff options
author | Chris Ball <cjb@laptop.org> | 2012-01-02 15:43:30 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-01-02 15:43:30 -0500 |
commit | f0011cf09d1385f983853b1d11ae5573148139bb (patch) | |
tree | df20d8d032fc4ecf7cd4344c6e4c6262679f90a9 /libbe/storage/http.py | |
parent | b1527580ece00959b9e9d90e8f0f7dd1bce0342a (diff) | |
parent | 6f2d652b2697d7aec6bb48a2bf4d6fff1ef03521 (diff) | |
download | bugseverywhere-f0011cf09d1385f983853b1d11ae5573148139bb.tar.gz |
Merge http://www.physics.drexel.edu/~wking/code/git/be
Diffstat (limited to 'libbe/storage/http.py')
-rw-r--r-- | libbe/storage/http.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py index f7af3e7..c2bb65b 100644 --- a/libbe/storage/http.py +++ b/libbe/storage/http.py @@ -335,14 +335,14 @@ if TESTING == True: class GetPostUrlTestCase (unittest.TestCase): """Test cases for get_post_url()""" def test_get(self): - url = 'http://bugseverywhere.org/be/show/HomePage' + url = 'http://bugseverywhere.org/' page,final_url,info = get_post_url(url=url) self.failUnless(final_url == url, 'Redirect?\n Expected: "%s"\n Got: "%s"' % (url, final_url)) def test_get_redirect(self): - url = 'http://bugseverywhere.org' - expected = 'http://bugseverywhere.org/be/show/HomePage' + url = 'http://physics.drexel.edu/~wking/code/be/redirect' + expected = 'http://physics.drexel.edu/~wking/' page,final_url,info = get_post_url(url=url) self.failUnless(final_url == expected, 'Redirect?\n Expected: "%s"\n Got: "%s"' |