diff --git a/tests/testapp/models/basic.py b/tests/testapp/models/basic.py
index c3a45ba5bd..dc108011e0 100644
--- a/tests/testapp/models/basic.py
+++ b/tests/testapp/models/basic.py
@@ -164,6 +164,10 @@ False
 True
 >>> a7 != a8
 True
+>>> articles.get_object(id__exact=8) != articles.get_object(id__exact=7)
+True
+>>> articles.get_object(id__exact=8) == articles.get_object(id__exact=7)
+False
 """
 
 from django.conf import settings