summaryrefslogtreecommitdiff
path: root/tests/testapp/models
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-09 22:56:43 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-09 22:56:43 +0000
commit270234d1895d81698fda140caa43629ad77504e0 (patch)
tree62759983b3c51e45da82c6cfeace72ba4d2b362b /tests/testapp/models
parent741109f44056a0c55aaaf7a2747926a7b1b648b6 (diff)
Added some extra examples to many_to_many unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/testapp/models')
-rw-r--r--tests/testapp/models/many_to_many.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testapp/models/many_to_many.py b/tests/testapp/models/many_to_many.py
index 787221a1fd..9b38b515b4 100644
--- a/tests/testapp/models/many_to_many.py
+++ b/tests/testapp/models/many_to_many.py
@@ -69,4 +69,11 @@ True
>>> p1.get_article_list(order_by=['headline'])
[Django lets you build Web apps easily, NASA uses Python]
+# If we delete an article, its publication won't be able to access it.
+>>> a2.delete()
+>>> articles.get_list()
+[Django lets you build Web apps easily]
+>>> p1.get_article_list(order_by=['headline'])
+[Django lets you build Web apps easily]
+
"""