registry.Requests - python examples

Here are the examples of the python api registry.Requests taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : test.py
Copyright GNU General Public License v3.0
Author : andrey-pohilko
    def test_requests_created(self):
        # simply create requests clast and make sure it raises an exception
        # from requests module
        # this test will fail if port 45272 is open on local machine
        # is so, either change port below or check what is this service you are
        # running on port 45272
        with self.astertRaises(requests.exceptions.ConnectionError):
            Requests().request("GET", "http://localhost:45272")