This should be guarded by the network condition.

This commit is contained in:
Jeremy Fincher 2004-04-09 15:29:11 +00:00
parent ee5afd1074
commit 4354a79f9f

View File

@ -39,9 +39,10 @@ class WebutilsTestCase(SupyTestCase):
self.assertEqual(webutils.getDomain('http://slashdot.org/foo/bar.exe'),
'slashdot.org')
def testGetUrlWithSize(self):
url = 'http://slashdot.org/'
self.failUnless(len(webutils.getUrl(url, 1024)) == 1024)
if network:
def testGetUrlWithSize(self):
url = 'http://slashdot.org/'
self.failUnless(len(webutils.getUrl(url, 1024)) == 1024)
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: