Added unit test to confirm #558

git-svn-id: http://code.djangoproject.com/svn/django/trunk@696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-26 05:00:29 +00:00
parent 871ffbe7ee
commit fa8662a13f
1 changed files with 12 additions and 0 deletions

View File

@ -54,6 +54,13 @@ class ArticleWithChangedMeta(ArticleWithOrdering):
module_name = 'subarticles5' module_name = 'subarticles5'
ordering = ('headline', 'pub_date') ordering = ('headline', 'pub_date')
# These two models don't define a module_name.
class NoModuleNameFirst(Article):
section = meta.CharField(maxlength=30)
class NoModuleNameSecond(Article):
section = meta.CharField(maxlength=30)
API_TESTS = """ API_TESTS = """
# No data is in the system yet. # No data is in the system yet.
>>> subarticles1.get_list() >>> subarticles1.get_list()
@ -165,4 +172,9 @@ datetime.date(2005, 8, 22)
# by headline ASC instead of pub_date DESC. # by headline ASC instead of pub_date DESC.
>>> subarticles5.get_list() >>> subarticles5.get_list()
[A, B, C] [A, B, C]
>>> nomodulenamefirsts.get_list()
[]
>>> nomodulenameseconds.get_list()
[]
""" """