Special case test of :80 to match the client's own figuring

This commit is contained in:
Paul Makepeace 2011-07-20 15:30:57 +00:00
parent e6a3038e46
commit e6a2810433
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ from tests import refinetest
class RefineServerTest(refinetest.RefineTestCase): class RefineServerTest(refinetest.RefineTestCase):
def test_init(self): def test_init(self):
server_url = 'http://%s:%s' % (refine.REFINE_HOST, refine.REFINE_PORT) server_url = 'http://' + refine.REFINE_HOST
if refine.REFINE_PORT != '80':
server_url += ':' + refine.REFINE_PORT
self.assertEqual(self.server.server, server_url) self.assertEqual(self.server.server, server_url)
self.assertEqual(refine.RefineServer.url(), server_url) self.assertEqual(refine.RefineServer.url(), server_url)
# strip trailing / # strip trailing /