summaryrefslogtreecommitdiff
path: root/tests/regressiontests/initial_sql_regress/tests.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2010-10-12 01:59:28 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2010-10-12 01:59:28 +0000
commit977d588dc26623026945a7e4ab4dbdd78869c521 (patch)
treea859133291427a412fd2e9afbcde95831608b8d0 /tests/regressiontests/initial_sql_regress/tests.py
parent2d030707864f11c5a2e5652b40d275558eae12f7 (diff)
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
Diffstat (limited to 'tests/regressiontests/initial_sql_regress/tests.py')
-rw-r--r--tests/regressiontests/initial_sql_regress/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/initial_sql_regress/tests.py b/tests/regressiontests/initial_sql_regress/tests.py
new file mode 100644
index 0000000000..2b3ca91f91
--- /dev/null
+++ b/tests/regressiontests/initial_sql_regress/tests.py
@@ -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)