summaryrefslogtreecommitdiff
path: root/tests/test_support.py
diff options
context:
space:
mode:
authorLukas Balaga <lukas.balaga@gmail.com>2016-02-27 16:31:18 -0800
committerLukas Balaga <lukas.balaga@gmail.com>2016-02-27 16:58:14 -0800
commit92bb5177b19cc9e99c643c6dc7f9e35331cde2db (patch)
tree57e73343a2f04602e68ac020dc0e4127ae565f88 /tests/test_support.py
parentda4f5e818417e94858c643be531f7a388bacf200 (diff)
downloadbabel-92bb5177b19cc9e99c643c6dc7f9e35331cde2db.tar.gz
Apply pre-commit fixes.
Diffstat (limited to 'tests/test_support.py')
-rw-r--r--tests/test_support.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_support.py b/tests/test_support.py
index efdddeb..f2a99b7 100644
--- a/tests/test_support.py
+++ b/tests/test_support.py
@@ -186,6 +186,7 @@ class TranslationsTestCase(unittest.TestCase):
class NullTranslationsTestCase(unittest.TestCase):
+
def setUp(self):
fp = BytesIO()
write_mo(fp, Catalog(locale='de'))
@@ -225,8 +226,10 @@ class NullTranslationsTestCase(unittest.TestCase):
class LazyProxyTestCase(unittest.TestCase):
+
def test_proxy_caches_result_of_function_call(self):
self.counter = 0
+
def add_one():
self.counter += 1
return self.counter
@@ -236,6 +239,7 @@ class LazyProxyTestCase(unittest.TestCase):
def test_can_disable_proxy_cache(self):
self.counter = 0
+
def add_one():
self.counter += 1
return self.counter
@@ -246,7 +250,8 @@ class LazyProxyTestCase(unittest.TestCase):
def test_can_copy_proxy(self):
from copy import copy
- numbers = [1,2]
+ numbers = [1, 2]
+
def first(xs):
return xs[0]
@@ -259,7 +264,8 @@ class LazyProxyTestCase(unittest.TestCase):
def test_can_deepcopy_proxy(self):
from copy import deepcopy
- numbers = [1,2]
+ numbers = [1, 2]
+
def first(xs):
return xs[0]