Create tests for fake user agent in Pywikibot
https://phabricator.wikimedia.org/T113596 introduced a fake user agent to the http module.
A new test class should be added to tests/http_tests.py
to verify the new http function works correctly.
The test class DefaultUserAgentTestCase
in that test module would be a good model of what the new test class should look like.
See https://github.com/wikimedia/pywikibot-core/tree/master/tests (README.rst) for more general information.
Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information, and https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS for a short online interactive tutorial. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task on this site please do use the task in Phabricator for communication instead of this site. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).