pytest-dev / unittest2pytest

helps rewriting Python `unittest` test-cases into `pytest` test-cases
GNU General Public License v3.0
128 stars 27 forks source link

Rewrite assertCountEqual #46

Open verhovsky opened 4 years ago

verhovsky commented 4 years ago

https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual

It's implemented with collections.Counter objects. https://github.com/python/cpython/blob/c96d00e88ead8f99bb6aa1357928ac4545d9287c/Lib/unittest/case.py#L1161