<commit_before>Responses
=========

A utility library for mocking out the `requests` Python library.

.. code-block:: python

    import responses
    import requests

    @responses.activate
    def test_my_api():
        responses.add(responses.GET, 'http://twitter.com/api/1/foobar',
                      body='{"error": "not found"}', status=404,
                      content_type='application/json')

        resp = requests.get('http://twitter.com/api/1/foobar')

        assert resp.json() == {"error": "not found"}


License
=======

::

	Copyright 2013 Dropbox, Inc.
<commit_msg>Add Travis CI test marker<commit_after>Responses
=========

.. image:: https://travis-ci.org/dropbox/responses.png?branch=master
	:target: https://travis-ci.org/dropbox/responses

A utility library for mocking out the `requests` Python library.

.. code-block:: python

    import responses
    import requests

    @responses.activate
    def test_my_api():
        responses.add(responses.GET, 'http://twitter.com/api/1/foobar',
                      body='{"error": "not found"}', status=404,
                      content_type='application/json')

        resp = requests.get('http://twitter.com/api/1/foobar')

        assert resp.json() == {"error": "not found"}


License
=======

::

	Copyright 2013 Dropbox, Inc.

{'fraction_non_alphanumeric': 0.15929878048780488, 'fraction_numerical': 0.013719512195121951, 'mean_word_length': 2.7195467422096318, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5844126', 'n_tokens_mistral': 419, 'n_tokens_neox': 382, 'n_words': 86}