assertItemsEqual() moved to assertCountEqual()
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user