

def test_parse_salt_saltenv(self):
    "\n        Test parsing a 'salt://' URL with a '?saltenv=' query\n        "
    saltenv = 'ambience'
    path = '?funny/path&with {interesting|chars}'
    url = ((('salt://' + path) + '?saltenv=') + saltenv)
    self.assertEqual(salt.utils.url.parse(url), (path, saltenv))

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