def METHOD_NAME(monkeypatch, legacy_config_credentials):
    monkeypatch.setenv("SNAPCRAFT_STORE_CREDENTIALS", legacy_config_credentials)
    assert LegacyUbuntuOne.env_has_legacy_credentials() is True