def testLoginCredsType(self): "Verify that up2dateAuth.login returns login credentials in a dict" ret = up2dateAuth.login() if type(ret) == type({}): if not ret.has_key('X-RHN-Auth'): self.fail("Expected a dict containing a X-RHN-AUTH header, didnt get it") else: self.fail("Expected a dict containing headers, but the return is not a dict")
def testLogin(self): "Attempt a login that utilizies capabilties" # this doesnt neccesarily seem to relate to caps # but it's here as a convient way to test login's # at the moment... # in the future we could also try override different # capbilities, etc... res = up2dateAuth.login()
def testLogin(self): "Test that up2dateAuth.login works with no exceptions" ret = up2dateAuth.login()