From 889910c77a9618dc59dd800c17913e2b1644cee3 Mon Sep 17 00:00:00 2001 From: Ata Tuzuner Date: Wed, 29 Nov 2023 12:24:15 -0500 Subject: [PATCH] Added tests for status code 425 definitions. --- tests/test_requests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_requests.py b/tests/test_requests.py index a71fe7d6b8..0ac3092f5e 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -2795,3 +2795,16 @@ def test_json_decode_persists_doc_attr(self, httpbin): with pytest.raises(requests.exceptions.JSONDecodeError) as excinfo: r.json() assert excinfo.value.doc == r.text + + def test_status_code_425(self): + r1 = requests.codes.get("TOO_EARLY") + r2 = requests.codes.get("too_early") + r3 = requests.codes.get("UNORDERED") + r4 = requests.codes.get("unordered") + r5 = requests.codes.get("UNORDERED_COLLECTION") + r6 = requests.codes.get("unordered_collection") + + assert r1 == 425 + assert r2 == 425 + assert r3 == 425 + assert r4 == 425