Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_url_with_slash_prefix(self):
client = StashClient("http://example.com/stash")
self.assertEqual("http://example.com/stash/rest/api/1.0/admin/groups", client.url("/api/1.0/admin/groups"))
def test_url_without_slash_prefix(self):
client = StashClient("http://example.com/stash")
self.assertEqual("http://example.com/stash/rest/api/1.0/admin/groups", client.url("api/1.0/admin/groups"))
def __init__(self, base_url, username=None, password=None, oauth=None, verify=True, token=None, session=None):
self._client = StashClient(base_url, username, password, oauth, verify, token, session=session)