Chris McDonough
2012-02-24 f5b9e9c6708e4176231c45f5e478d56bba4b42e6
use paren-bracketed imports for modules from the same source
8 files modified
64 ■■■■■ changed files
pyramid/tests/test_authentication.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_encode.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_httpexceptions.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_integration.py 8 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_mako_templating.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_request.py 14 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_url.py 12 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_view.py 6 ●●●●● patch | view | raw | blame | history
pyramid/tests/test_authentication.py
@@ -1,7 +1,9 @@
import unittest
from pyramid import testing
from pyramid.compat import text_
from pyramid.compat import bytes_
from pyramid.compat import (
    text_,
    bytes_,
    )
class TestCallbackAuthenticationPolicyDebugging(unittest.TestCase):
    def setUp(self):
pyramid/tests/test_encode.py
@@ -1,6 +1,8 @@
import unittest
from pyramid.compat import text_
from pyramid.compat import native_
from pyramid.compat import (
    text_,
    native_,
    )
class UrlEncodeTests(unittest.TestCase):
    def _callFUT(self, query, doseq=False):
pyramid/tests/test_httpexceptions.py
@@ -1,7 +1,9 @@
import unittest
from pyramid.compat import bytes_
from pyramid.compat import text_
from pyramid.compat import (
    bytes_,
    text_,
    )
class Test_exception_response(unittest.TestCase):
    def _callFUT(self, *arg, **kw):
pyramid/tests/test_integration.py
@@ -8,8 +8,10 @@
from pyramid.wsgi import wsgiapp
from pyramid.view import view_config
from pyramid.static import static_view
from pyramid.compat import text_
from pyramid.compat import url_quote
from pyramid.compat import (
    text_,
    url_quote,
    )
from zope.interface import Interface
@@ -616,7 +618,7 @@
        return val
    
def _assertBody(body, filename):
    if defaultlocale is None:
    if defaultlocale is None: # pragma: no cover
        # If system locale does not have an encoding then default to utf-8
        filename = filename.encode('utf-8')
    assert(body.replace(b'\r', b'') == read_(filename))
pyramid/tests/test_mako_templating.py
@@ -2,8 +2,10 @@
import unittest
from pyramid import testing
from pyramid.compat import text_
from pyramid.compat import text_type
from pyramid.compat import (
    text_,
    text_type,
    )
class Base(object):
    def setUp(self):
pyramid/tests/test_request.py
@@ -1,11 +1,15 @@
import unittest
from pyramid import testing
from pyramid.compat import PY3
from pyramid.compat import text_
from pyramid.compat import bytes_
from pyramid.compat import native_
from pyramid.compat import iteritems_, iterkeys_, itervalues_
from pyramid.compat import (
    PY3,
    text_,
    bytes_,
    native_,
    iteritems_,
    iterkeys_,
    itervalues_,
    )
class TestRequest(unittest.TestCase):
    def setUp(self):
pyramid/tests/test_url.py
@@ -1,10 +1,14 @@
import unittest
import warnings
from pyramid.testing import setUp
from pyramid.testing import tearDown
from pyramid.compat import text_
from pyramid.compat import native_
from pyramid.testing import (
    setUp,
    tearDown,
    )
from pyramid.compat import (
    text_,
    native_,
    )
class TestURLMethodsMixin(unittest.TestCase):
    def setUp(self):
pyramid/tests/test_view.py
@@ -3,8 +3,10 @@
from zope.interface import implementer
from pyramid.testing import setUp
from pyramid.testing import tearDown
from pyramid.testing import (
    setUp,
    tearDown,
    )
class BaseTest(object):
    def setUp(self):