def setup(self): super(WhenGettingNext, self).setup() self.oid = Dingus('oid') self.event = Dingus('event') mod.events.find().sort.return_value = [self.event] self.returned = next(self.oid)
def setup(self): super(WhenGettingNextAndNoMoreEvents, self).setup() self.oid = Dingus('oid') mod.events.find().sort.return_value = [] self.returned = next(self.oid)