Commit 977d588d authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Converted initial_sql_regress tests from doctests (sort of...) to unittests. ...

Converted initial_sql_regress tests from doctests (sort of...) to unittests.  We have always been at war with doctests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 2d030707
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -7,7 +7,5 @@ from django.db import models
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 −0
Original line number Diff line number Diff line
from django.test import TestCase

from models import Simple


class InitialSQLTests(TestCase):
    def test_initial_sql(self):
        self.assertEqual(Simple.objects.count(), 7)