<commit_before>"""
    :codeauthor: <NAME> <<EMAIL>>
"""

import salt.modules.napalm_network as net_mod
import salt.states.netconfig as netconfig
import salt.utils.files
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase


class NetconfigTestCase(TestCase, LoaderModuleMockMixin):
    """
    Test cases for salt.states.netconfig
    """

    def setup_loader_modules(self):
        mock_true = MagicMock(return_value=True)

        state_loader_globals = {
            "__env__": "base",
            "__salt__": {"net.replace_pattern": net_mod.replace_pattern},
        }
        module_loader_globals = {
            "__env__": "base",
            "__salt__": {
                "net.replace_pattern": net_mod.replace_pattern,
                "net.load_config": net_mod.load_config,
            },<commit_msg>Removed unused variable in test<commit_after>"""
    :codeauthor: <NAME> <<EMAIL>>
"""

import salt.modules.napalm_network as net_mod
import salt.states.netconfig as netconfig
import salt.utils.files
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase


class NetconfigTestCase(TestCase, LoaderModuleMockMixin):
    """
    Test cases for salt.states.netconfig
    """

    def setup_loader_modules(self):
        state_loader_globals = {
            "__env__": "base",
            "__salt__": {"net.replace_pattern": net_mod.replace_pattern},
        }
        module_loader_globals = {
            "__env__": "base",
            "__salt__": {
                "net.replace_pattern": net_mod.replace_pattern,
                "net.load_config": net_mod.load_config,
            },
{'fraction_non_alphanumeric': 0.10496613995485328, 'fraction_numerical': 0.0, 'mean_word_length': 2.8967032967032966, 'pattern_counts': {'":': 14, '<': 9, '<?xml version=': 0, '>': 9, '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': '913994', 'n_tokens_mistral': 526, 'n_tokens_neox': 516, 'n_words': 106}