Пример #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