<commit_before>from unittest import TestCase
from mock import Mock, MagicMock, create_autospec
from qualipy.api.cloudshell_api import VlanPoolSingleNumericInfo

from models.VLANAutoResourceModel import VLANAutoResourceModel
from vlan_service.resolver.provider import VlanResolverProvider


class TestVlanResolver(TestCase):
    def test_vlan_service_not_resolved_yet(self):
        vlan_resource_model = VLANAutoResourceModel()
        vlan_resource_model.vlan_id = "20"
        vlan_resource_model.virtual_network = ""

        resolver = VlanResolverProvider(vlan_resource_model=vlan_resource_model,
                                        pool_id="Global",
                                        reservation_id="c5144273-c456-4885-a9b7-f5b058f02678",
                                        owner_id="VLAN Auto",
                                        api=Mock())

        result = resolver.is_vlan_resolved()

        self.assertFalse(result)<commit_msg>fixed still failing test "test_vlan_service_resolves_specific_numeric"<commit_after>from unittest import TestCase
from mock import Mock, MagicMock
from models.VLANAutoResourceModel import VLANAutoResourceModel
from vlan_service.resolver.provider import VlanResolverProvider


class TestVlanResolver(TestCase):
    def test_vlan_service_not_resolved_yet(self):
        vlan_resource_model = VLANAutoResourceModel()
        vlan_resource_model.vlan_id = "20"
        vlan_resource_model.virtual_network = ""

        resolver = VlanResolverProvider(vlan_resource_model=vlan_resource_model,
                                        pool_id="Global",
                                        reservation_id="c5144273-c456-4885-a9b7-f5b058f02678",
                                        owner_id="VLAN Auto",
                                        api=Mock())

        result = resolver.is_vlan_resolved()

        self.assertFalse(result)
{'fraction_non_alphanumeric': 0.06071805702217529, 'fraction_numerical': 0.028511087645195353, 'mean_word_length': 2.439201451905626, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5891621', 'n_tokens_mistral': 534, 'n_tokens_neox': 499, 'n_words': 80}