summaryrefslogtreecommitdiff
path: root/tests/regressiontests/mongodb
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-07-19 21:04:03 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-07-19 21:04:03 +0000
commit9c6e1c89c595de5b6bd3180d59faf944a3093d6d (patch)
treebdb3542c0200434f19f70ec99136fdf33573fe19 /tests/regressiontests/mongodb
parenta35cbdbeafb478aeaa281c4d38821affbb47ff37 (diff)
[soc2010/query-refactor] Provide a more useful error message on disjunctions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/mongodb')
-rw-r--r--tests/regressiontests/mongodb/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/regressiontests/mongodb/tests.py b/tests/regressiontests/mongodb/tests.py
index 01bdd6c13a..42a45621e0 100644
--- a/tests/regressiontests/mongodb/tests.py
+++ b/tests/regressiontests/mongodb/tests.py
@@ -1,5 +1,5 @@
from django.db import connection, UnsupportedDatabaseOperation
-from django.db.models import Count, Sum, F
+from django.db.models import Count, Sum, F, Q
from django.test import TestCase
from models import Artist, Group
@@ -392,3 +392,7 @@ class MongoTestCase(TestCase):
self.assert_unsupported(
lambda: Artist.objects.aggregate(Count("id"), Count("pk"))
)
+
+ self.assert_unsupported(
+ Artist.objects.filter(Q(pk=0) | Q(pk=1))
+ )