Code Duplication    Length = 15-15 lines in 2 locations

tests/unit/models/test_evc_base.py 2 locations

@@ 255-269 (lines=15) @@
252
        _, redeploy = evc.update(**update_dict)
253
        assert redeploy
254
255
    @patch("napps.kytos.mef_eline.models.EVC.sync")
256
    def test_update_queue_null(self, _sync_mock):
257
        """Test if evc is set to redeploy."""
258
        attributes = {
259
            "controller": get_controller_mock(),
260
            "name": "circuit_name",
261
            "enable": True,
262
            "dynamic_backup_path": True,
263
            "uni_a": get_uni_mocked(is_valid=True),
264
            "uni_z": get_uni_mocked(is_valid=True),
265
        }
266
        update_dict = {"queue_id": None}
267
        evc = EVC(**attributes)
268
        _, redeploy = evc.update(**update_dict)
269
        assert redeploy
270
271
    def test_update_different_tag_lists(self):
272
        """Test update when tag lists are different."""
@@ 239-253 (lines=15) @@
236
        assert evc.primary_path == primary_path
237
        assert len(evc.backup_path) == 0
238
239
    @patch("napps.kytos.mef_eline.models.EVC.sync")
240
    def test_update_queue(self, _sync_mock):
241
        """Test if evc is set to redeploy."""
242
        attributes = {
243
            "controller": get_controller_mock(),
244
            "name": "circuit_name",
245
            "enable": True,
246
            "dynamic_backup_path": True,
247
            "uni_a": get_uni_mocked(is_valid=True),
248
            "uni_z": get_uni_mocked(is_valid=True),
249
        }
250
        update_dict = {"queue_id": 3}
251
        evc = EVC(**attributes)
252
        _, redeploy = evc.update(**update_dict)
253
        assert redeploy
254
255
    @patch("napps.kytos.mef_eline.models.EVC.sync")
256
    def test_update_queue_null(self, _sync_mock):