summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-21 02:34:05 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-21 02:34:05 +0000
commit10ca90a2fd4a6e22d034e33e736ea2a2b21967c9 (patch)
treeb0793dee4e54df13dff87fcf4db453ea9c9835be /tests
parentdb94402ea69fb3ba14288441cd28938c568586f5 (diff)
Added unit tests to verify OneToOne deletion works
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/testapp/models/one_to_one.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testapp/models/one_to_one.py b/tests/testapp/models/one_to_one.py
index 5b384aa82b..b8f68836b3 100644
--- a/tests/testapp/models/one_to_one.py
+++ b/tests/testapp/models/one_to_one.py
@@ -74,4 +74,7 @@ Demon Dogs the restaurant
>>> w.save()
>>> w
Joe the waiter at Demon Dogs the restaurant
+
+>>> r = restaurants.get_object(pk=1)
+>>> r.delete()
"""