1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Advanced deprecation warnings for 1.8.

This commit is contained in:
Aymeric Augustin
2014-03-22 21:08:59 +01:00
parent 74b3467646
commit 232181d1c5
9 changed files with 24 additions and 22 deletions

View File

@@ -14,6 +14,7 @@ from django.db.models.sql.where import WhereNode, EverythingNode, NothingNode
from django.db.models.sql.datastructures import EmptyResultSet
from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import str_prefix, CaptureQueriesContext
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils import six
from .models import (
@@ -1149,7 +1150,7 @@ class Queries1Tests(BaseQuerysetTest):
['<Tag: t1>', '<Tag: t2>', '<Tag: t3>', '<Tag: t4>', '<Tag: t5>']
)
self.assertEqual(len(w), 1)
self.assertTrue(issubclass(w[0].category, PendingDeprecationWarning))
self.assertTrue(issubclass(w[0].category, RemovedInDjango19Warning))
class Queries2Tests(TestCase):