Combined Q-object tests
This commit is contained in:
parent
3591593ac7
commit
26723992e3
@ -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…
x
Reference in New Issue
Block a user