diff options
author | Raymond Hettinger <python@rcn.com> | 2010-12-24 21:51:48 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-12-24 21:51:48 (GMT) |
commit | 57bd00a15bc06d90a1d8540706b3a66ee8c69039 (patch) | |
tree | e0c90291ae66b73398d2b729b603d19c55830ddf /Doc/library/unittest.rst | |
parent | 1397ce1821d4888a3637bd9490cc9c930f3c7b98 (diff) | |
download | cpython-57bd00a15bc06d90a1d8540706b3a66ee8c69039.zip cpython-57bd00a15bc06d90a1d8540706b3a66ee8c69039.tar.gz cpython-57bd00a15bc06d90a1d8540706b3a66ee8c69039.tar.bz2 |
Adopt symmetric names for arguments (actual/expected --> first/second).
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 9e30908..609789f 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1151,16 +1151,16 @@ Test cases .. deprecated:: 3.2 - .. method:: assertCountEqual(actual, expected, msg=None) + .. method:: assertCountEqual(first, second, msg=None) - Test that sequence *actual* contains the same elements as *expected*, + Test that sequence *first* contains the same elements as *second*, regardless of their order. When they don't, an error message listing the differences between the sequences will be generated. - Duplicate elements are *not* ignored when comparing *actual* and - *expected*. It verifies if each element has the same count in both + Duplicate elements are *not* ignored when comparing *first* and + *second*. It verifies whether each element has the same count in both sequences. Equivalent to: - ``assertEqual(Counter(list(actual)), Counter(list(expected)))`` + ``assertEqual(Counter(list(first)), Counter(list(second)))`` but works with sequences of unhashable objects as well. .. versionadded:: 3.2 |