<commit_before><commit_msg>Start test_mediawiki test page<commit_after># coding=utf-8

import simplemediawiki
import unittest


class MediaWikiTest(unittest.TestCase):
    def setUp(self):
        self.user_agent = simplemediawiki.build_user_agent(
            'python-simplemediawiki test suite', simplemediawiki.__version__,
            'https://github.com/ianweller/python-simplemediawiki')
        self.mw = simplemediawiki.MediaWiki(('https://simplemediawikitestsuite'
                                             '-ianweller.rhcloud.com/api.php'),
                                            user_agent=self.user_agent)

    def test_login(self):
        self.assertTrue(self.mw.login('password', '<PASSWORD>'))
{'fraction_non_alphanumeric': 0.10460251046025104, 'fraction_numerical': 0.001394700139470014, 'mean_word_length': 2.519607843137255, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7023483', 'n_tokens_mistral': 195, 'n_tokens_neox': 191, 'n_words': 28}