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

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

src/m/o/mozpool-4.1.5/mozpool/test/unit/test_statemachine.py   mozpool(Download)
    def test_event(self):
        state1.called_on_poke = False
        self.machine.handle_event('poke', {})
        self.assertTrue(state1.called_on_poke)
 
    def test_timeout(self):
        state1.called_on_timeout = False
        self.machine.handle_timeout()
        self.assertTrue(state1.called_on_timeout)
 

src/m/o/mozpool-4.1.5/mozpool/test/unit/bmm/test_ping.py   mozpool(Download)
    def test_ping_success(self, system):
        system.return_value = 0
        self.assertTrue(ping.ping('abcd'))
        system.assert_called_with('fping %s abcd' % self.fixed_args)