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_clear_counter_not_set(self):
        self.machine.handle_event('clear', {})
        self.assertFalse('x' in self.machine._counters)
 
    def test_clear_counter_set(self):
        self.machine._counters = dict(x=10)
        self.machine.handle_event('clear', {})
        self.assertFalse('x' in self.machine._counters)

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