(self, actual, expected, msg=None)
| 44 | |
| 45 | # Python 2/3 compatibility |
| 46 | def assertItemsEqual(self, actual, expected, msg=None): |
| 47 | try: |
| 48 | return super(TestBase, self).assertItemsEqual(actual, expected, msg=msg) |
| 49 | except AttributeError: |
| 50 | try: |
| 51 | # Checks that actual and expected have the same elements in the same |
| 52 | # number, regardless of their order |
| 53 | return super(TestBase, self).assertCountEqual(actual, expected, msg=msg) |
| 54 | except AttributeError: |
| 55 | return self.assertEqual(sorted(actual), sorted(expected), msg=msg) |
| 56 | |
| 57 | def assertRaisesRegexp(self, exc, r, fun, *args, **kwargs): |
| 58 | try: |
no outgoing calls