aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-07-30 11:43:30 -0400
committerW. Trevor King <wking@drexel.edu>2011-07-30 11:43:30 -0400
commiteb40d407a056f0ac38896196dee6dbb543df424e (patch)
tree861e7d48946605fa5297d1219b8863b29618ce79 /libbe
parentbf52e18aad6e0e8effcadc6b90dfedf4d15b1859 (diff)
downloadbugseverywhere-eb40d407a056f0ac38896196dee6dbb543df424e.tar.gz
bugseverywhere.org has changed URL handling, so use different URLs for HTTP testing.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/storage/http.py6
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"'