Lines Matching refs:_sleep
277 self.assertEqual(time.sleep, new_req._sleep)
383 request._sleep = lambda x: sleeptimes.append(x)
411 request._sleep = mock.MagicMock()
415 request._sleep.assert_not_called()
540 download._sleep = lambda _x: 0 # do nothing
574 download._sleep = lambda x: sleeptimes.append(x)
871 request._sleep = lambda _x: 0 # do nothing
883 request._sleep = lambda _x: 0 # do nothing
902 request._sleep = lambda _x: 0 # do nothing
928 request._sleep = lambda x: sleeptimes.append(x)
954 request._sleep = lambda x: sleeptimes.append(x)
978 request._sleep = mock.MagicMock()
982 request._sleep.assert_not_called()
1001 request._sleep = mock.MagicMock()
1005 request._sleep.assert_not_called()
1024 request._sleep = mock.MagicMock()
1028 request._sleep.assert_not_called()
1047 request._sleep = mock.MagicMock()
1051 request._sleep.assert_not_called()
1070 request._sleep = mock.MagicMock()
1074 request._sleep.assert_not_called()