<commit_before>"""
Unit testing.
"""
import unittest
from .. import gen_sympy
import os
import subprocess

TEST_DIR = os.path.dirname(os.path.realpath(__file__))

class Test(unittest.TestCase):
    "Testing"

    def test_bouncing_ball(self):
        "Test if bouncing ball simulates"
        #pylint: disable=no-self-use
        gen_sympy.main(argv=[os.path.join(TEST_DIR, "BouncingBall.mo")])
        script = os.path.join(TEST_DIR, 'BouncingBall.mo.py')
        cmd = 'python {script:s}'.format(**locals())
        subprocess.Popen(cmd.split())
<commit_msg>Added communicate call to test.<commit_after>"""
Unit testing.
"""
import unittest
from .. import gen_sympy
import os
import subprocess

TEST_DIR = os.path.dirname(os.path.realpath(__file__))

class Test(unittest.TestCase):
    "Testing"

    def test_bouncing_ball(self):
        "Test if bouncing ball simulates"
        #pylint: disable=no-self-use
        gen_sympy.main(argv=[os.path.join(TEST_DIR, "BouncingBall.mo")])
        script = os.path.join(TEST_DIR, 'BouncingBall.mo.py')
        cmd = 'python {script:s}'.format(**locals())
        proc = subprocess.Popen(cmd.split())
        proc.communicate()

{'fraction_non_alphanumeric': 0.1407849829351536, 'fraction_numerical': 0.0, 'mean_word_length': 3.546511627906977, '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': '2598842', 'n_tokens_mistral': 408, 'n_tokens_neox': 391, 'n_words': 76}