requests_mock.NoMockAddress

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

2 Examples 7

Example 1

Project: fjord Source File: test_adapter.py
    def test_requests_in_history_on_no_match(self):
        self.assertRaises(requests_mock.NoMockAddress,
                          self.session.get,
                          self.url)

        self.assertEqual(self.url, self.adapter.last_request.url)

Example 2

Project: fjord Source File: test_fixture.py
Function: test_failure
    def test_failure(self):
        self.assertRaises(requests_mock.NoMockAddress,
                          requests.get,
                          'http://www.google.com')