<commit_before>import unittest
from hamcrest import *
from lib.params import parse_args


class test_arguments_parsing(unittest.TestCase):

    def test_default_secret_and_token_to_data_dir(self):
        argument = parse_args("")

        assert_that(argument.client_secrets, is_('data/client_secrets.json'))
        assert_that(argument.oauth_tokens, is_('data/tokens.dat'))
<commit_msg>Test for parsing argument parameters<commit_after>import unittest
from hamcrest import *
from lib.params import parse_args


class test_arguments_parsing(unittest.TestCase):

    def test_default_secret_and_token_to_data_dir(self):
        argument = parse_args([])

        assert_that(argument.client_secrets, is_('data/client_secrets.json'))
        assert_that(argument.oauth_tokens, is_('data/tokens.dat'))

    def test_parse_secret_and_token_params(self):
        argument = parse_args(['--client-secrets', '/var/google/secrets.json',
                              '--oauth-tokens', '/var/google/token.dat'])

        assert_that(argument.client_secrets, is_('/var/google/secrets.json'))
        assert_that(argument.oauth_tokens, is_('/var/google/token.dat'))

{'fraction_non_alphanumeric': 0.1132238547968885, 'fraction_numerical': 0.0, 'mean_word_length': 4.192825112107624, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1066623', 'n_tokens_mistral': 371, 'n_tokens_neox': 353, 'n_words': 53}