def __init__(self, base_url): verify_url(base_url) self.base_url = base_url self.session = JolokiaSession()
def test_weird_machiney_url(self): args = ['http://url-23497fdca787d87b.az.example.com'] assert verify_url(*args) is True
def test_well_formed(self): args = ['http://localhost:8080/jolokia'] assert verify_url(*args) is True
def test_well_formed_with_non_alpha_chars(self): args = ['http://localhost:8080/joloki-1.0.0'] assert verify_url(*args) is True
def __init__(self, base_url, username=None, password=None): verify_url(base_url) self.base_url = base_url self.session = JolokiaSession(username, password)