<commit_before>__author__ = '<NAME>'

from apsis.assistants.lab_assistant import *
from nose.tools import assert_equal, assert_items_equal, assert_dict_equal, \
    assert_is_none, assert_raises, raises, assert_greater_equal, \
    assert_less_equal, assert_in
from apsis.utilities.logging_utils import get_logger
from apsis.models.parameter_definition import *

class TestAcquisition(object):
    """
    Tests the lab_assistants.
    """

    def test_init(self):
        """
        Tests whether the initialization works correctly.
        Tests:
            - Whether the directory for writing is correct
            - exp_assistants is empty
            - logger name is correctly set.
        """
        LAss = PrettyLabAssistant()
        assert_equal(LAss.write_directory_base, "/tmp/APSIS_WRITING")
        assert_items_equal(LAss.exp_assistants, {})
        assert_equal(LAss.logger,<commit_msg>Corrected naming of the lab assistant test to something more verbose (and correct) than TestAcquisition.<commit_after>__author__ = '<NAME>'

from apsis.assistants.lab_assistant import *
from nose.tools import assert_equal, assert_items_equal, assert_dict_equal, \
    assert_is_none, assert_raises, raises, assert_greater_equal, \
    assert_less_equal, assert_in
from apsis.utilities.logging_utils import get_logger
from apsis.models.parameter_definition import *

class TestLabAssistant(object):
    """
    Tests the lab_assistants.
    """

    def test_init(self):
        """
        Tests whether the initialization works correctly.
        Tests:
            - Whether the directory for writing is correct
            - exp_assistants is empty
            - logger name is correctly set.
        """
        LAss = PrettyLabAssistant()
        assert_equal(LAss.write_directory_base, "/tmp/APSIS_WRITING")
        assert_items_equal(LAss.exp_assistants, {})
        assert_equal(LAss.logger,
{'fraction_non_alphanumeric': 0.07712486883525708, 'fraction_numerical': 0.0, 'mean_word_length': 3.200440528634361, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7146310', 'n_tokens_mistral': 561, 'n_tokens_neox': 542, 'n_words': 131}