From d7ac9391662540a9c05e931dad56c09aea6ed910 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sat, 7 Mar 2020 18:29:32 +0100 Subject: [PATCH] Use self-explanatory names for assertIn() arguments These names are also shown with the help() function, and are immediately understandable, contrary to 1st and 2nd. --- Doc/library/unittest.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index e2e4f2cdc220aa..b2e16cf331e036 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -910,10 +910,10 @@ Test cases .. versionadded:: 3.1 - .. method:: assertIn(first, second, msg=None) - assertNotIn(first, second, msg=None) + .. method:: assertIn(member, container, msg=None) + assertNotIn(member, container, msg=None) - Test that *first* is (or is not) in *second*. + Test that *member* is (or is not) in *container*. .. versionadded:: 3.1