Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/l/a/lalita-0.1.1/lalita/ircbot.py   lalita(Download)
    def userLeft(self, user, channel):
        """Called when I see another user leaving a channel."""
        logger.debug("%s left %s", user, channel)
        self.dispatcher.push(events.LEFT, user, channel)
 

src/l/a/lalita-0.1.1/lalita/plugins/tests/test_seen.py   lalita(Download)
    def test_left(self):
        '''Logs left.'''
        self.disp.push(events.LEFT, "pepe", "channel")
        self.assertEqual(self.plugin.iolog["pepe"][0], "left")
        self.assertEqual(self.plugin.saidlog, {})
    def test_left(self):
        '''User asks about one that left.'''
        self.disp.push(events.LEFT, "juan", "channel")
        self.disp.push(events.COMMAND, "pepe", "channel", "seen", "juan")
        m = re.match(u"pepe: \[.*\] -- left", self.answer[0][1])
    def test_joined_and_left(self):
        '''User asks about one that joined and left.'''
        self.disp.push(events.JOIN, "juan", "channel")
        self.disp.push(events.LEFT, "juan", "channel")
        self.disp.push(events.COMMAND, "pepe", "channel", "seen", "juan")
    def test_left_and_joined(self):
        '''User asks about one that left and joined.'''
        self.disp.push(events.LEFT, "juan", "channel")
        self.disp.push(events.JOIN, "juan", "channel")
        self.disp.push(events.COMMAND, "pepe", "channel", "seen", "juan")
    def test_said_and_left(self):
        '''User asks about one that said something and left.'''
        self.disp.push(events.PUBLIC_MESSAGE, "juan", "channel", "blah")
        self.disp.push(events.LEFT, "juan", "channel")
        self.disp.push(events.COMMAND, "pepe", "channel", "seen", "juan")

src/l/a/lalita-0.1.1/lalita/core/tests/test_events.py   lalita(Download)
    def test_userLeft(self):
        '''Calling bot.userLeft'''
        bot.userLeft("user", "chnl")
        self.check_pushed(events.LEFT, "user", "chnl")
        return self.deferred

src/l/a/lalita-0.1.1/lalita/core/tests/test_dispatcher.py   lalita(Download)
        self.helper.test = test
 
        self.disp.register(events.LEFT, self.helper.f)
        self.disp.push(events.LEFT, "user", "channel")
        return self.deferred