'Creates a new Server object.
:param test_dir: The directory where all test stuff is kept. This is
passed from the FunctionalTestCase.
:param port: The port to start a server up on.'

def __init__(self, test_dir, port, sock=None):

    self.debug = True
    self.no_venv = False
    self.test_dir = test_dir
    self.bind_port = port
    self.conf_file_name = None
    self.conf_base = None
    self.paste_conf_base = None
    self.exec_env = None
    self.deployment_flavor = ''
    self.show_image_direct_url = False
    self.show_multiple_locations = False
    self.property_protection_file = ''
    self.enable_v1_api = True
    self.enable_v2_api = True
    self.enable_v1_registry = True
    self.enable_v2_registry = True
    self.needs_database = False
    self.log_file = None
    self.sock = sock
    self.fork_socket = True
    self.process_pid = None
    self.server_module = None
    self.stop_kill = False
    self.use_user_token = True
    self.send_identity_credentials = False
