diff options
author | Ramiro Morales <cramm0@gmail.com> | 2013-06-28 22:38:13 -0300 |
---|---|---|
committer | Ramiro Morales <cramm0@gmail.com> | 2013-06-28 22:38:13 -0300 |
commit | 7379d9aceab01e007966b5fe1f47ba7590deb887 (patch) | |
tree | a03857630a0074139af9a8c5311e6c6008fd461d /tests/utils_tests/test_datastructures.py | |
parent | 8eadbc5a03d06f5bfedfa3fad35ad0801d2ab6ff (diff) | |
download | django-7379d9aceab01e007966b5fe1f47ba7590deb887.tar.gz |
Removed insert(), value_for_insert() SortedDict methods deprecated in Django 1.5.
Diffstat (limited to 'tests/utils_tests/test_datastructures.py')
-rw-r--r-- | tests/utils_tests/test_datastructures.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/utils_tests/test_datastructures.py b/tests/utils_tests/test_datastructures.py index 5829e7c2d7..5563a0fc4f 100644 --- a/tests/utils_tests/test_datastructures.py +++ b/tests/utils_tests/test_datastructures.py @@ -4,7 +4,6 @@ Tests for stuff in django.utils.datastructures. import copy import pickle -import warnings from django.test import SimpleTestCase from django.utils.datastructures import (DictWrapper, ImmutableList, @@ -134,20 +133,6 @@ class SortedDictTests(SimpleTestCase): self.assertEqual(list(reversed(self.d1)), [9, 1, 7]) self.assertEqual(list(reversed(self.d2)), [7, 0, 9, 1]) - def test_insert(self): - d = SortedDict() - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") - d.insert(0, "hello", "world") - assert w[0].category is DeprecationWarning - - def test_value_for_index(self): - d = SortedDict({"a": 3}) - with warnings.catch_warnings(record=True) as w: - warnings.simplefilter("always") - self.assertEqual(d.value_for_index(0), 3) - assert w[0].category is DeprecationWarning - class MergeDictTests(SimpleTestCase): |