1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed a few more imports of django.utils.unittest.

One import per line please! Refs #20680.
This commit is contained in:
Aymeric Augustin
2013-07-01 22:49:07 +02:00
parent 09b446dfe8
commit e021b87c00
8 changed files with 26 additions and 11 deletions

View File

@@ -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