def test_successful_retry(self):        
     should_succeed = auto_retry(3, 0.0)(self._check_counter)
 
     try:
         should_succeed()
     except AssertionError:
         assert False, "should_succeed() didn't succeed!"
 def test_failed_retry(self):
     should_fail = auto_retry(2, 0.0)(self._check_counter)
     
     try:
         should_fail()
     except AssertionError:
         pass
     else:
         assert False, "should_fail() didn't fail!"