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