def test_reset_results_in_false_handler(self): #arrange err = ErrorHandler(1) #act err.push(1, "foo") err.reset() #assert self.assertFalse(bool(err))
def test_reset_then_push_results_in_true_handler(self): #arrange err = ErrorHandler(1) #act err.push(1, "foo") err.reset() err.push(1, "bar") #assert self.assertTrue(bool(err))