Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Converted initial_sql_regress tests from doctests (sort of...) to uni…

…ttests. We have always been at war with doctests.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 977d588dc26623026945a7e4ab4dbdd78869c521 1 parent 2d03070
@alex alex authored
2  tests/regressiontests/initial_sql_regress/
@@ -7,7 +7,5 @@
class Simple(models.Model):
name = models.CharField(max_length = 50)
-__test__ = {'API_TESTS':""}
# NOTE: The format of the included SQL file for this test suite is important.
# It must end with a trailing newline in order to test the fix for #2161.
8 tests/regressiontests/initial_sql_regress/
@@ -0,0 +1,8 @@
+from django.test import TestCase
+from models import Simple
+class InitialSQLTests(TestCase):
+ def test_initial_sql(self):
+ self.assertEqual(Simple.objects.count(), 7)
Please sign in to comment.
Something went wrong with that request. Please try again.