File: test_urlutils.py

package info (click to toggle)
reportbug 7.1.7%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,152 kB
  • sloc: python: 8,593; sh: 51; makefile: 43; lisp: 31
file content (14 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest

from nose.plugins.attrib import attr

from reportbug import urlutils


class TestNetwork(unittest.TestCase):

    @attr('network')  # mark the test as using network
    def test_open_url(self):

        page = urlutils.open_url('https://bugs.debian.org/reportbug')
        self.assertIsNotNone(page)