Metadata-Version: 1.1
Name: httmock
Version: 1.0
Summary: A mocking library for requests.
Home-page: https://github.com/patrys/httmock
Author: Patryk Zawadzki
Author-email: patrys@room-303.com
License: UNKNOWN
Description: httmock
        =======
        
        A mocking library for `requests`
        
        ------
        
        You can use it to mock third-party APIs and test libraries that use `requests` internally:
        
        ```python
        from httmock import urlmatch, HTTMock
        import requests
        
        @urlmatch(netloc=r'(.*\.)?google\.com$')
        def google_mock(url, request):
            return 'Feeling lucky, punk?'
        
        with HTTMock(google_mock):
            r = requests.get('http://google.com/')
        print r.content  # 'Feeling lucky, punk?'
        ```
Keywords: requests,testing,mock
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Operating System :: OS Independent
