Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
Cito committed Mar 7, 2020
commit d7ac9391662540a9c05e931dad56c09aea6ed910
6 changes: 3 additions & 3 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down