Searched refs:sentinel (Results 1 – 2 of 2) sorted by relevance
209 def _RaiseAndRetry(sentinel): argument210 sentinel.alert()213 sentinel = mock.MagicMock()214 self.assertRaises(ValueError, _RaiseAndRetry, sentinel)215 self.assertEqual(1 + num_retry, sentinel.alert.call_count)220 def _RaiseAndRetry(sentinel): argument221 sentinel.alert()225 sentinel = mock.MagicMock()233 sentinel=sentinel)234 self.assertEqual(1 + num_retry, sentinel.alert.call_count)[all …]
1439 def Raise412(sentinel): argument1441 if not sentinel.hitFingerPrintConflict.called:1442 sentinel.hitFingerPrintConflict()1446 sentinel = mock.MagicMock()1447 result = Raise412(sentinel)1448 self.assertEqual(1, sentinel.hitFingerPrintConflict.call_count)