def test_raises_zero_max_wait_ms(self): with self.assertRaises(ValueError): retrying.retry(fn=lambda x: x, wait_max_ms=0)
def test_raises_zero_wait_multiplier(self): with self.assertRaises(ValueError): retrying.retry(fn=lambda x: x, wait_multiplier=0)
def test_raises_non_function_result_filter(self): with self.assertRaises(TypeError): retrying.retry(fn=lambda x: x, retry_on_result_filter=0)
def test_raises_complex_max_wait_ms(self): with self.assertRaises(TypeError): retrying.retry(fn=lambda x: x, wait_max_ms=1j)
def test_raises_non_function(self): with self.assertRaises(TypeError): retrying.retry(fn=0)