def testUnreachableServer(self): self.hostname = 'localhost' self.port = '1337' cmd = OrientDBServerCommand(self.hostname, self.port) self.assertRaises(ConnectionRefusedError, cmd.execute_get_command, "foo")
def __init__(self, server_host, server_port): self.command = OrientDBServerCommand(server_host, server_port)