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
3
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)
0
Example 2
def test_failure(self):
self.assertRaises(requests_mock.NoMockAddress,
requests.get,
'http://www.google.com')