test_urlutils.py 364 B

12345678910111213141516
  1. import unittest2
  2. from nose.plugins.attrib import attr
  3. from reportbug import urlutils
  4. class TestNetwork(unittest2.TestCase):
  5. @attr('network') # mark the test as using network
  6. def test_open_url(self):
  7. page = urlutils.open_url('https://bugs.debian.org/reportbug')
  8. content = page.read()
  9. self.assertIsNotNone(page.info().headers)