Code Duplication    Length = 15-15 lines in 2 locations

tests/unit/models/test_evc_base.py 2 locations

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