def macaroon_service(db_session): return macaroon_services.DatabaseMacaroonService(db_session)
def test_creation(self): session = pretend.stub() service = services.DatabaseMacaroonService(session) assert service.db is session