From 5b705d25dae247a6ba8244ac55cf2137ade20f1e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 26 Aug 2022 10:40:34 +0100 Subject: [PATCH] Add SimpleTestCase.assertURLEqual() (#1102) --- django-stubs/test/testcases.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django-stubs/test/testcases.pyi b/django-stubs/test/testcases.pyi index 40b0199..efffc09 100644 --- a/django-stubs/test/testcases.pyi +++ b/django-stubs/test/testcases.pyi @@ -82,6 +82,12 @@ class SimpleTestCase(unittest.TestCase): msg_prefix: str = ..., fetch_redirect_response: bool = ..., ) -> None: ... + def assertURLEqual( + self, + url1: str | Any, # Any for reverse_lazy() support + url2: str | Any, + msg_prefix: str = ..., + ) -> None: ... def assertContains( self, response: HttpResponseBase,