Code Duplication    Length = 12-12 lines in 2 locations

tests/milvus_python_test/test_config.py 2 locations

@@ 1268-1279 (lines=12) @@
1265
            assert status.OK()
1266
            assert config_value == str(valid_enable)
1267
1268
    @pytest.mark.timeout(CONFIG_TIMEOUT)
1269
    def test_set_address_valid(self, connect, collection):
1270
        '''
1271
        target: set address
1272
        method: call set_config correctly
1273
        expected: status ok, set successfully
1274
        '''
1275
        status, reply = connect.set_config("metric", "address", '127.0.0.1')
1276
        assert status.OK()
1277
        status, config_value = connect.get_config("metric", "address")
1278
        assert status.OK()
1279
        assert config_value == '127.0.0.1'
1280
1281
    def test_set_port_valid(self, connect, collection):
1282
        '''
@@ 897-908 (lines=12) @@
894
        status, reply = connect.set_config("network", "child_key", 19530)
895
        assert not status.OK()
896
897
    @pytest.mark.timeout(CONFIG_TIMEOUT)
898
    def test_set_address_valid(self, connect, collection):
899
        '''
900
        target: set address
901
        method: call set_config correctly
902
        expected: status ok, set successfully
903
        '''
904
        status, reply = connect.set_config("network", "bind.address", '0.0.0.0')
905
        assert status.OK()
906
        status, config_value = connect.get_config("network", "bind.address")
907
        assert status.OK()
908
        assert config_value == '0.0.0.0'
909
910
    def test_set_port_valid(self, connect, collection):
911
        '''