~ubuntu-branches/ubuntu/wily/python-urllib3/wily

« back to all changes in this revision

Viewing changes to test/test_proxymanager.py

  • Committer: Package Import Robot
  • Author(s): Daniele Tricoli
  • Date: 2015-08-17 18:51:43 UTC
  • mfrom: (4.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20150817185143-o57dout57ku76uux
Tags: 1.11-1
* New upstream release.
* debian/control
  - Add python{,3}-tornado to Build-Depends.
  - Add python-ntlm to python-urllib3's Suggests.
* debian/patches/01_do-not-use-embedded-python-six.patch
  - Refresh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        p = ProxyManager('https://something')
39
39
        self.assertEqual(p.proxy.port, 443)
40
40
 
 
41
    def test_invalid_scheme(self):
 
42
        self.assertRaises(AssertionError, ProxyManager, 'invalid://host/p')
 
43
        self.assertRaises(ValueError, ProxyManager, 'invalid://host/p')
 
44
 
41
45
 
42
46
if __name__ == '__main__':
43
47
    unittest.main()