@patch('tornado.httpserver.HTTPServer')
@patch('koi.configure.options')
@patch('koi.configure.ssl_server_options')
@patch('koi.configure.load_config')
def test_make_server_use_ssl(load_config, ssl_server_options,
                             options, HTTPServer):
    ssl_server_options.return_value = {'': 'ssl'}
    options.use_ssl = True
    make_server(None, '.')
    assert load_config.call_count >= 1
    HTTPServer.assert_called_once_with(None, ssl_options={'': 'ssl'})
dataset/ETHPy150Open openpermissions/koi/tests/unit/ssl/test_configure.py/test_make_server_use_ssl/original