

def test_add_env(self):
    "\n        Test adding a saltenv to a 'salt://' URL\n        "
    saltenv = 'erstwhile'
    url = 'salt://salted/file.conf'
    url_env = ((url + '?saltenv=') + saltenv)
    self.assertEqual(salt.utils.url.add_env(url, saltenv), url_env)

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