Combined Q-object tests
This commit is contained in:
parent
3591593ac7
commit
26723992e3
1 changed files with 0 additions and 3 deletions
|
|
@ -1393,9 +1393,6 @@ class QTest(unittest.TestCase):
|
||||||
self.assertEqual(Post.objects.filter(created_user=user).count(), 1)
|
self.assertEqual(Post.objects.filter(created_user=user).count(), 1)
|
||||||
self.assertEqual(Post.objects.filter(Q(created_user=user)).count(), 1)
|
self.assertEqual(Post.objects.filter(Q(created_user=user)).count(), 1)
|
||||||
|
|
||||||
|
|
||||||
class NewQTest(unittest.TestCase):
|
|
||||||
|
|
||||||
def test_and_combination(self):
|
def test_and_combination(self):
|
||||||
"""Ensure that Q-objects correctly AND together.
|
"""Ensure that Q-objects correctly AND together.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue