def test_user(self): "Check if fluiddb user exists" fdb = Fluid(self.url) try: ret = fdb.__call__('GET', '/users/fluiddb') if ret[0] == 200: return (True, '%s instance is now reachable' % self.shortname.capitalize(), ret[1]['id']) except socket.error: return (False, '%s instance is unreachable' % self.shortname.capitalize()) except: pass return (False, 'Wrong thing happends on %s instance' % self.shortname)