summaryrefslogtreecommitdiff
path: root/tests/backends
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-07-01 22:49:07 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-07-01 22:49:07 +0200
commite021b87c0009c11aa2e62b62fc40b4b0209a8e5d (patch)
tree289d9d35667705df39c2de8dfd1cdbc398f09c53 /tests/backends
parent09b446dfe86f01f9d21e8c6351a31c5587a5b7a9 (diff)
Fixed a few more imports of django.utils.unittest.
One import per line please! Refs #20680.
Diffstat (limited to 'tests/backends')
-rw-r--r--tests/backends/tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index 488f8d518b..b1bfa4cb21 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -5,6 +5,7 @@ from __future__ import absolute_import, unicode_literals
import datetime
from decimal import Decimal
import threading
+import unittest
from django.conf import settings
from django.core.management.color import no_style
@@ -21,7 +22,7 @@ from django.db.utils import ConnectionHandler
from django.test import (TestCase, skipUnlessDBFeature, skipIfDBFeature,
TransactionTestCase)
from django.test.utils import override_settings, str_prefix
-from django.utils import six, unittest
+from django.utils import six
from django.utils.six.moves import xrange
from . import models
@@ -469,7 +470,7 @@ class BackendTestCase(TestCase):
def create_squares_with_executemany(self, args):
self.create_squares(args, 'format', True)
- def create_squares(self, args, paramstyle, multiple):
+ def create_squares(self, args, paramstyle, multiple):
cursor = connection.cursor()
opts = models.Square._meta
tbl = connection.introspection.table_name_converter(opts.db_table)
@@ -541,7 +542,7 @@ class BackendTestCase(TestCase):
# same test for DebugCursorWrapper
self.create_squares(args, 'pyformat', multiple=True)
self.assertEqual(models.Square.objects.count(), 9)
-
+
def test_unicode_fetches(self):
#6254: fetchone, fetchmany, fetchall return strings as unicode objects
qn = connection.ops.quote_name