예제 #1
0
def macaroon_service(db_session):
    return macaroon_services.DatabaseMacaroonService(db_session)
예제 #2
0
    def test_creation(self):
        session = pretend.stub()
        service = services.DatabaseMacaroonService(session)

        assert service.db is session