def test_reset(self): add(self.callback, 1) eq_(len(_locals.tasks), 1) reset() eq_(len(_locals.tasks), 0)
def setUp(self): reset() self.callback = mock.Mock() self.callback.__name__ = 'foo'