

def test_unescape_escaped_url(self):
    "\n        Test testing an escaped 'salt://' URL\n        "
    resource = 'dir/file.conf?saltenv=basic'
    url = ('salt://' + resource)
    escaped_url = ('salt://|' + resource)
    self.assertEqual(salt.utils.url.unescape(escaped_url), url)

dataset/ETHPy150Open saltstack/salt/tests/unit/utils/url_test.py UrlTestCase.test_unescape_escaped_url/original