Lines Matching refs:sentinel
61 def _RaiseAndRetry(sentinel): argument
62 sentinel.alert()
65 sentinel = mock.MagicMock()
66 self.assertRaises(ValueError, _RaiseAndRetry, sentinel)
67 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
71 def _RaiseAndRetry(sentinel): argument
72 sentinel.alert()
76 sentinel = mock.MagicMock()
79 sentinel=sentinel)
80 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
85 def _RaiseAndRetry(sentinel): argument
86 sentinel.alert()
90 sentinel = mock.MagicMock()
95 sentinel=sentinel)
97 self.assertEqual(1 + num_retry, sentinel.alert.call_count)