Code Duplication    Length = 14-14 lines in 2 locations

tests/test_models.py 1 location

@@ 297-310 (lines=14) @@
294
        """Test primary links zipped method."""
295
        pass
296
297
    @staticmethod
298
    @patch('napps.kytos.mef_eline.models.log')
299
    def test_should_deploy_case1(log_mock):
300
        """Test should deploy method without primary links."""
301
        log_mock.debug.return_value = True
302
        attributes = {
303
            "name": "custom_name",
304
            "uni_a": get_uni_mocked(is_valid=True),
305
            "uni_z": get_uni_mocked(is_valid=True)
306
        }
307
308
        evc = EVC(**attributes)
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):

tests/models/test_evc_deploy.py 1 location

@@ 26-39 (lines=14) @@
23
        """Test primary links zipped method."""
24
        pass
25
26
    @staticmethod
27
    @patch('napps.kytos.mef_eline.models.log')
28
    def test_should_deploy_case1(log_mock):
29
        """Test should deploy method without primary links."""
30
        log_mock.debug.return_value = True
31
        attributes = {
32
            "name": "custom_name",
33
            "uni_a": get_uni_mocked(is_valid=True),
34
            "uni_z": get_uni_mocked(is_valid=True)
35
        }
36
37
        evc = EVC(**attributes)
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):