Code Duplication    Length = 14-14 lines in 2 locations

tests/test_models.py 1 location

@@ 312-325 (lines=14) @@
309
        evc.should_deploy()
310
        log_mock.debug.assert_called_with('Path is empty.')
311
312
    @patch('napps.kytos.mef_eline.models.log')
313
    def test_should_deploy_case2(self, log_mock):
314
        """Test should deploy method with disable circuit."""
315
        log_mock.debug.return_value = True
316
        attributes = {
317
            "name": "custom_name",
318
            "uni_a": get_uni_mocked(is_valid=True),
319
            "uni_z": get_uni_mocked(is_valid=True),
320
            "primary_links": [get_link_mocked(), get_link_mocked()]
321
        }
322
        evc = EVC(**attributes)
323
324
        self.assertFalse(evc.should_deploy(attributes['primary_links']))
325
        log_mock.debug.assert_called_with(f'{evc} is disabled.')
326
327
    @patch('napps.kytos.mef_eline.models.log')
328
    def test_should_deploy_case3(self, log_mock):

tests/models/test_evc_deploy.py 1 location

@@ 41-54 (lines=14) @@
38
        evc.should_deploy()
39
        log_mock.debug.assert_called_with('Path is empty.')
40
41
    @patch('napps.kytos.mef_eline.models.log')
42
    def test_should_deploy_case2(self, log_mock):
43
        """Test should deploy method with disable circuit."""
44
        log_mock.debug.return_value = True
45
        attributes = {
46
            "name": "custom_name",
47
            "uni_a": get_uni_mocked(is_valid=True),
48
            "uni_z": get_uni_mocked(is_valid=True),
49
            "primary_links": [get_link_mocked(), get_link_mocked()]
50
        }
51
        evc = EVC(**attributes)
52
53
        self.assertFalse(evc.should_deploy(attributes['primary_links']))
54
        log_mock.debug.assert_called_with(f'{evc} is disabled.')
55
56
    @patch('napps.kytos.mef_eline.models.log')
57
    def test_should_deploy_case3(self, log_mock):