From 141a5382d88029264920be77a543628419bfca58 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 12 Dec 2005 03:01:57 +0000 Subject: [PATCH] magic-removal: Fixed some bugs in unit tests git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1602 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/testapp/models/many_to_many.py | 6 +++--- tests/testapp/models/subclassing.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testapp/models/many_to_many.py b/tests/testapp/models/many_to_many.py index 70c0a5cc20..c26458cf06 100644 --- a/tests/testapp/models/many_to_many.py +++ b/tests/testapp/models/many_to_many.py @@ -67,15 +67,15 @@ True # If we delete a Publication, its Articles won't be able to access it. >>> p1.delete() ->>> publications.get_list() +>>> Publication.objects.get_list() [Science News] ->>> a1 = articles.get_object(pk=1) +>>> a1 = Article.objects.get_object(pk=1) >>> a1.get_publication_list() [] # If we delete an Article, its Publications won't be able to access it. >>> a2.delete() ->>> articles.get_list() +>>> Article.objects.get_list() [Django lets you build Web apps easily] >>> p1.get_article_list(order_by=['headline']) [Django lets you build Web apps easily] diff --git a/tests/testapp/models/subclassing.py b/tests/testapp/models/subclassing.py index 5e7c2c7bdb..6a7852d91d 100644 --- a/tests/testapp/models/subclassing.py +++ b/tests/testapp/models/subclassing.py @@ -173,8 +173,8 @@ datetime.date(2005, 8, 22) >>> ArticleWithChangedMeta.objects.get_list() [A, B, C] ->>> nomodulenamefirsts.get_list() +>>> NoModuleNameFirst.objects.get_list() [] ->>> nomodulenameseconds.get_list() +>>> NoModuleNameSecond.objects.get_list() [] """