def METHOD_NAME():
    """
    Ensure the worker is initialised with the expected generated paths to be
    used when uploading files to PythonAnywhere.
    """
    instance = "www"
    username = "test_user"
    token = "a_test_token"
    files = {
        "app.py": "app.py",
    }
    app_name = "app"
    progress = mock.MagicMock()  # Instance of a modal progress indicator.
    paw = workers.PythonAnywhereWorker(
        instance, username, token, files, app_name, progress
    )
    assert paw.instance == instance
    assert paw.username == username
    assert paw.token == token
    assert paw.files == files
    assert paw.app_name == app_name
    assert paw.progress == progress
    assert (
        paw.url
        == "https://{instance}.pythonanywhere.com/api/v0/user/{username}/".format(
            instance=instance, username=username
        )
    )
    assert paw.files_path == "files/path/home/{username}/{app_name}/".format(
        username=username, app_name=app_name
    )
    assert (
        paw.wsgi_path
        == "/files/path/var/www/{username}_pythonanywhere_com_wsgi.py".format(
            username=username
        )
    )
    assert paw.static_path == "/home/{username}/{app_name}/static/".format(
        username=username, app_name=app_name
    )
    assert paw.wsgi_config == workers.WSGI.format(
        username=username, app_name=app_name
    )