Improve grouping of imports in tests.
diff --git a/mock/tests/testhelpers.py b/mock/tests/testhelpers.py
index 14dbfe3..d96dbf4 100644
--- a/mock/tests/testhelpers.py
+++ b/mock/tests/testhelpers.py
@@ -3,7 +3,6 @@
# http://www.voidspace.org.uk/python/mock/
import six
-
import unittest2 as unittest
from mock import (
diff --git a/mock/tests/testmagicmethods.py b/mock/tests/testmagicmethods.py
index 20b0e9f..f47a202 100644
--- a/mock/tests/testmagicmethods.py
+++ b/mock/tests/testmagicmethods.py
@@ -4,8 +4,6 @@
from __future__ import division
-import unittest2 as unittest
-
try:
unicode
except NameError:
@@ -13,10 +11,13 @@
unicode = str
long = int
-import six
import inspect
import sys
import textwrap
+
+import six
+import unittest2 as unittest
+
from mock import Mock, MagicMock
from mock.mock import _magics
diff --git a/mock/tests/testmock.py b/mock/tests/testmock.py
index ddecfe1..d60f579 100644
--- a/mock/tests/testmock.py
+++ b/mock/tests/testmock.py
@@ -2,17 +2,14 @@
# E-mail: fuzzyman AT voidspace DOT org DOT uk
# http://www.voidspace.org.uk/python/mock/
-import unittest2 as unittest
-from mock.tests.support import (
- callable, is_instance, next
-)
-
-import six
import copy
import pickle
import sys
import tempfile
+import six
+import unittest2 as unittest
+
import mock
from mock import (
call, DEFAULT, patch, sentinel,
@@ -21,6 +18,9 @@
create_autospec
)
from mock.mock import _CallList
+from mock.tests.support import (
+ callable, is_instance, next
+)
try:
diff --git a/mock/tests/testpatch.py b/mock/tests/testpatch.py
index 208e97a..761ce99 100644
--- a/mock/tests/testpatch.py
+++ b/mock/tests/testpatch.py
@@ -4,8 +4,8 @@
import os
import sys
-import six
+import six
import unittest2 as unittest
from mock.tests import support