def METHOD_NAME(self, socket_patches, model_service_worker, mocker):
    exception = Exception("Some Exception")
    socket_patches.socket.accept.side_effect = exception
    mocker.patch('mms.model_service_worker.DEBUG', True)
    model_service_worker.handle_connection = Mock()
    with pytest.raises(Exception):
        model_service_worker.run_server()
    socket_patches.socket.bind.assert_called()
    socket_patches.socket.listen.assert_called()
    socket_patches.socket.accept.assert_called()