

def test_http_basic_auth_https_only(self):
    '\n        Tests that passing a non-https URL with https_only=True will raise a\n        ValueError.\n        '
    kwargs = {
        'url': 'http://example.com',
        'user': 'foo',
        'password': 'bar',
        'https_only': True,
    }
    kwargs.assertRaises(ValueError, salt.utils.url.add_http_basic_auth, **kwargs)

dataset/ETHPy150Open saltstack/salt/tests/unit/utils/url_test.py UrlTestCase.test_http_basic_auth_https_only/VarMisuse@38/103 `self`->`kwargs`