def METHOD_NAME(self):
    test_response = Response()
    test_response.status_code = 429
    time_in_past = time.time() - 30
    test_response.headers = {"Retry-After": formatdate(timeval=time_in_past)}
    retry_after_sleep = get_retry_after(test_response)
    assert retry_after_sleep == 0