def test_create_weblab_environment_thorough(self):

        settings = prepare_system("testuser@testuser.com", "admin", "Administrador", "password", "admin@admin.com",
               self.wcloud_settings)
        self._settings = settings
        base_url = os.path.join(flask_app.config["DIR_BASE"], settings[Creation.BASE_URL])
        create_weblab_environment(base_url, settings)

        # Start a local server on that config to check whether it works as expected.
        from weblab.comm.proxy_server import start as start_proxy
        g = globals()
        l = locals()
        execfile(os.path.join(base_url, 'httpd/simple_server_config.py'), g, l)
        print "FILE: " + base_url
        p = g.get("PATHS") or l.get("PATHS")
        start_proxy(8001, p)

        time.sleep(1)

        r = requests.get("http://localhost:8001/testentity/weblab/client/index.html")
        assert r.status_code == 200
        assert "Deusto" in r.text
dataset/ETHPy150Open weblabdeusto/weblabdeusto/tools/wcloud/wcloud/test/test_wcloud_tasks.py/TestWcloudTasks.test_create_weblab_environment_thorough/original