Exemple #1
0
    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)
Exemple #2
0
    def setup(self):
        super(WhenGettingNextAndNoMoreEvents, self).setup()
        self.oid = Dingus('oid')
        mod.events.find().sort.return_value = []

        self.returned = next(self.oid)