def METHOD_NAME(self, monkeypatch):
    app = pretend.stub()
    config = pretend.stub(
        registry=pretend.stub(
            settings={
                "whitenoise": {"autorefresh": False},
                "whitenoise.files": [("/foo/", {"prefix": "/static/"})],
                "whitenoise.manifests": [("/manifest.json", "/static/")],
            }
        )
    )
    file_test_obj = pretend.stub(
        add_manifest=pretend.call_recorder(lambda *a, **kw: None)
    )
    file_test_cls = pretend.call_recorder(lambda: file_test_obj)
    monkeypatch.setattr(static, "ImmutableManifestFiles", file_test_cls)
    whitenoise_obj = pretend.stub(
        add_files=pretend.call_recorder(lambda path, prefix: None)
    )
    whitenoise_cls = pretend.call_recorder(lambda app, **kw: whitenoise_obj)
    monkeypatch.setattr(static, "WhiteNoise", whitenoise_cls)
    static._create_whitenoise(app, config)
    assert whitenoise_cls.calls == [
        pretend.call(app, autorefresh=False, immutable_file_test=file_test_obj)
    ]
    assert whitenoise_obj.add_files.calls == [
        pretend.call("/foo", prefix="/static/")
    ]
    assert file_test_cls.calls == [pretend.call()]
    assert file_test_obj.add_manifest.calls == [
        pretend.call("/manifest.json", "/static/")
    ]