Searched refs:sentinel (Results 1 – 2 of 2) sorted by relevance
200 def _RaiseAndRetry(sentinel): argument201 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): argument212 sentinel.alert()216 sentinel = mock.MagicMock()224 sentinel=sentinel)225 self.assertEqual(1 + num_retry, sentinel.alert.call_count)[all …]
1434 def Raise412(sentinel): argument1436 if not sentinel.hitFingerPrintConflict.called:1437 sentinel.hitFingerPrintConflict()1441 sentinel = mock.MagicMock()1442 result = Raise412(sentinel)1443 self.assertEqual(1, sentinel.hitFingerPrintConflict.call_count)