You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
269 B

import unittest2
from reportbug import urlutils
class TestNetwork(unittest2.TestCase):
def test_open_url(self):
page = urlutils.open_url('http://bugs.debian.org/reportbug')
content = page.read()
self.assertIsNotNone(page.info().headers)