def test_HTTPError_interface_call(self):
        """
        Issue 15701= - HTTPError interface has info method available from URLError.
        """
        err = urllib2.HTTPError(msg='something bad happened', url=None,
                                code=None, hdrs='Content-Length:42', fp=None)
        self.assertTrue(hasattr(err, 'reason'))
        assert hasattr(err, 'reason')
        assert hasattr(err, 'info')
        assert callable(err.info)
        try:
            err.info()
        except __HOLE__:
            self.fail("err.info() failed")
        self.assertEqual(err.info(), "Content-Length:42")
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/test/test_urllib2.py/RequestTests.test_HTTPError_interface_call