<commit_before>import glob
import os
import tarfile
import sys

from . import D2to1TestCase


VERSION = '0.1.dev'


class TestCore(D2to1TestCase):
    def test_import_setup_cfg(self):
        """
        Test importing the main modules of setup.cfg.

        This both tests that importing it is possible, but is also kind
        of necessary for coverage.py to pick up the fact that those modules
        were imported.
        """

        modules = ['setup.cfg', 'setup.cfg.core', 'setup.cfg.util']
        for module in modules:
            if module in sys.modules:
                del sys.modules[module]
            __import__(module)

    def test_setup_py_version(self):
        """
        Test that the `./setup.py --version` command returns the correct
        value without balking.
        """

        self.run_setup('egg_info')
        stdout, _, _ = self.run_setup('--version')
        assert stdout == VERSION

    def test_setup_py_keywords(self):
        """
        Test that the `./setup.py --keywords` command returns the correct
        value without balking.
        """<commit_msg>Update import test to reflect new modules<commit_after>import glob
import os
import tarfile
import sys

from . import D2to1TestCase


VERSION = '0.1.dev'


class TestCore(D2to1TestCase):
    def test_import_setup_cfg(self):
        """
        Test importing the main modules of setup.cfg.

        This both tests that importing it is possible, but is also kind
        of necessary for coverage.py to pick up the fact that those modules
        were imported.
        """

        modules = ['setup.cfg', 'setup.cfg.core', 'setup.cfg.config',
                   'setup.cfg.util']
        for module in modules:
            if module in sys.modules:
                del sys.modules[module]
            __import__(module)

    def test_setup_py_version(self):
        """
        Test that the `./setup.py --version` command returns the correct
        value without balking.
        """

        self.run_setup('egg_info')
        stdout, _, _ = self.run_setup('--version')
        assert stdout == VERSION

    def test_setup_py_keywords(self):
        """
        Test that the `./setup.py --keywords` command returns the correct
        value without balking.
        """
{'fraction_non_alphanumeric': 0.09067017082785808, 'fraction_numerical': 0.005256241787122208, 'mean_word_length': 2.0906630581867387, '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': '4412884', 'n_tokens_mistral': 643, 'n_tokens_neox': 612, 'n_words': 205}