Don't aggressively cache token requests in tests
Don't aggressively cache token requests in tests

Tests aggressively cache all API responses, with the
exception of requests containing 'lgpassword'.

Announced recently, token handling on the server is changing.
Brad Jorsch: 'Upcoming changes to token handling'
https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2014-August/000063.html

pywikibot doesnt handle 'badtoken', which should cause the client to
get a new token.

As a result, re-running tests now fail with badtoken errors, and
can only be corrected by deleting the data in tests/apicache.

This patch tells the test layer to not use the API cache for
any request containing 'intoken', so new tokens will be requested
each test run.

Change-Id: I9f7d86bd1a13eda3cc0b2170840c9d65e716dd20

hasteur/g13bot_tools_new,hasteur/g13bot_tools_new,happy5214/pywikibot-core,h4ck3rm1k3/pywikibot-core,trishnaguha/pywikibot-core,valhallasw/pywikibot-core,icyflame/batman,emijrp/pywikibot-core,jayvdb/pywikibot-core,Darkdadaah/pywikibot-core,hasteur/g13bot_tools_new,npdoty/pywikibot,wikimedia/pywikibot-core,magul/pywikibot-core,magul/pywikibot-core,Darkdadaah/pywikibot-core,VcamX/pywikibot-core,smalyshev/pywikibot-core,h4ck3rm1k3/pywikibot-core,wikimedia/pywikibot-core,TridevGuha/pywikibot-core,npdoty/pywikibot,xZise/pywikibot-core,PersianWikipedia/pywikibot-core,jayvdb/pywikibot-core,happy5214/pywikibot-core,darthbhyrava/pywikibot-local