16 |
16 |
17 Designed to be compatible with 3.1 unittest. Methods are only defined if |
17 Designed to be compatible with 3.1 unittest. Methods are only defined if |
18 `unittest` doesn't have them. |
18 `unittest` doesn't have them. |
19 |
19 |
20 """ |
20 """ |
21 # pylint: disable=arguments-differ, deprecated-method |
21 # pylint: disable=signature-differs, deprecated-method |
22 |
22 |
23 if not unittest_has('assertCountEqual'): |
23 if not unittest_has('assertCountEqual'): |
24 def assertCountEqual(self, *args, **kwargs): |
24 def assertCountEqual(self, *args, **kwargs): |
25 return self.assertItemsEqual(*args, **kwargs) |
25 return self.assertItemsEqual(*args, **kwargs) |
26 |
26 |