Lines Matching refs:sentinel
200 def _RaiseAndRetry(sentinel): argument
201 sentinel.alert()
204 sentinel = mock.MagicMock()
205 self.assertRaises(ValueError, _RaiseAndRetry, sentinel)
206 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
211 def _RaiseAndRetry(sentinel): argument
212 sentinel.alert()
216 sentinel = mock.MagicMock()
224 sentinel=sentinel)
225 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
231 def _RaiseAndRetry(sentinel): argument
232 sentinel.alert()
236 sentinel = mock.MagicMock()
244 sentinel=sentinel)
246 self.assertEqual(1 + num_retry, sentinel.alert.call_count)