<commit_before>"""Tests for app/feed_receiver.py.

If you want to test with a real live pubsubhubbub instance, here's how
to do it.  You'll be running your own pubsubhubbub instance locally,
since pubsubhubbub needs to make web requests to your app (which is
running on localhost:8080).

1. Dowload the pubsubhubbub source code from:
   http://code.google.com/p/pubsubhubbub/source/checkout

2. Run the pubsubhubbub server code (in the hub subdirectory) using:
   dev_appserver.py --port 8888 hub

3. Check that it works by pointing your browser to:
   http://localhost:8888
   (Don't click on any links -- they don't work because they're https.)

4. In another shell, run your resourcefinder instance in the usual way:<commit_msg>Add pointer to PSHB getting started docs.<commit_after>"""Tests for app/feed_receiver.py.

If you want to test with a real live pubsubhubbub instance, here's how
to do it.  You'll be running your own pubsubhubbub instance locally,
since pubsubhubbub needs to make web requests to your app (which is
running on localhost:8080).

For steps 1-3 see also:
http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide

1. Dowload the pubsubhubbub source code from:
   http://code.google.com/p/pubsubhubbub/source/checkout

2. Run the pubsubhubbub server code (in the hub subdirectory) using:
   dev_appserver.py --port 8888 hub

3. Check that it works by pointing your browser to:
   http://localhost:8888
   (Don't click on any links -- they don't work because they're https.)

4. In another shell, run your resourcefinder instance in the usual way:
{'fraction_non_alphanumeric': 0.074354127284184, 'fraction_numerical': 0.02142407057340895, 'mean_word_length': 4.1558441558441555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1270363', 'n_tokens_mistral': 513, 'n_tokens_neox': 478, 'n_words': 209}