def test__FacilityQuery__has_gsrn__Facility_exists__returns_correct_facility(
        seeded_session, gsrn):

    query = FacilityQuery(seeded_session) \
        .has_gsrn(gsrn)

    assert query.count() == 1
    assert query.one().gsrn == gsrn
def test__FacilityQuery__has_public_id__Facility_exists__returns_correct_facility(
        seeded_session, public_id):

    query = FacilityQuery(seeded_session) \
        .has_public_id(public_id)

    assert query.count() == 1
    assert query.one().public_id == public_id