assertItemsEqual() moved to assertCountEqual()

This commit is contained in:
Dave St.Germain
2019-08-19 17:00:17 -04:00
parent 3bb7d0f61a
commit 3d2617983b
44 changed files with 132 additions and 111 deletions

View File

@@ -5,6 +5,7 @@ from __future__ import absolute_import
import base64
import json
import re
import six
from django.test import TestCase
from django.test.utils import override_settings
@@ -49,7 +50,7 @@ class ApiTestCase(TestCase):
allow_header = resp.get("Allow")
self.assertIsNotNone(allow_header)
allowed_methods = re.split('[^A-Z]+', allow_header)
self.assertItemsEqual(allowed_methods, expected_methods)
six.assertCountEqual(allowed_methods, expected_methods)
def assertSelfReferential(self, obj):
"""Assert that accessing the "url" entry in the given object returns the same object"""