Convert to unittest module, all tests currently passing

https://mediawiki.org/wiki/Special:Code/pywikipedia/11698