Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added unit test to confirm #558

git-svn-id: http://code.djangoproject.com/svn/django/trunk@696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fa8662a13f0826a2f7eb4fb727307ad45c3e0175 1 parent 871ffbe
Adrian Holovaty authored September 26, 2005

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  tests/testapp/models/subclassing.py
12  tests/testapp/models/subclassing.py
@@ -54,6 +54,13 @@ class META:
54 54
        module_name = 'subarticles5'
55 55
        ordering = ('headline', 'pub_date')
56 56
 
  57
+# These two models don't define a module_name.
  58
+class NoModuleNameFirst(Article):
  59
+    section = meta.CharField(maxlength=30)
  60
+
  61
+class NoModuleNameSecond(Article):
  62
+    section = meta.CharField(maxlength=30)
  63
+
57 64
 API_TESTS = """
58 65
 # No data is in the system yet.
59 66
 >>> subarticles1.get_list()
@@ -165,4 +172,9 @@ class META:
165 172
 # by headline ASC instead of pub_date DESC.
166 173
 >>> subarticles5.get_list()
167 174
 [A, B, C]
  175
+
  176
+>>> nomodulenamefirsts.get_list()
  177
+[]
  178
+>>> nomodulenameseconds.get_list()
  179
+[]
168 180
 """

0 notes on commit fa8662a

Please sign in to comment.
Something went wrong with that request. Please try again.