Author: russellm
Date: 2009-12-22 00:00:57 -0600 (Tue, 22 Dec 2009)
New Revision: 11937

Modified:
   django/trunk/tests/regressiontests/test_runner/tests.py
Log:
Corrected the tests for DjangoTestRunner so they pass under Postgres.

Modified: django/trunk/tests/regressiontests/test_runner/tests.py
===================================================================
--- django/trunk/tests/regressiontests/test_runner/tests.py     2009-12-22 
02:31:45 UTC (rev 11936)
+++ django/trunk/tests/regressiontests/test_runner/tests.py     2009-12-22 
06:00:57 UTC (rev 11937)
@@ -4,25 +4,25 @@
 import StringIO
 import unittest
 import django
-from django.test import TestCase, TransactionTestCase, simple 
+from django.test import simple
 
-class DjangoTestRunnerTests(TestCase):
-    
+class DjangoTestRunnerTests(unittest.TestCase):
+
     def test_failfast(self):
-        class MockTestOne(TransactionTestCase):
+        class MockTestOne(unittest.TestCase):
             def runTest(self):
                 assert False
-        class MockTestTwo(TransactionTestCase):
+        class MockTestTwo(unittest.TestCase):
             def runTest(self):
                 assert False
-                
+
         suite = unittest.TestSuite([MockTestOne(), MockTestTwo()])
         mock_stream = StringIO.StringIO()
         dtr = simple.DjangoTestRunner(verbosity=0, failfast=False, 
stream=mock_stream)
         result = dtr.run(suite)
         self.assertEqual(2, result.testsRun)
         self.assertEqual(2, len(result.failures))
-        
+
         dtr = simple.DjangoTestRunner(verbosity=0, failfast=True, 
stream=mock_stream)
         result = dtr.run(suite)
         self.assertEqual(1, result.testsRun)

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to