def METHOD_NAME(self, db_session, factories):
    user = factories.User(authority="foobar.com")
    third_party_user = factories.User(authority="othersite.com")
    svc = FeatureService(session=db_session, default_authority=user.authority)
    assert svc.enabled("on-for-first-party") is False
    assert svc.enabled("on-for-first-party", user) is True
    assert svc.enabled("on-for-first-party", third_party_user) is False