diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-15 01:55:54 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-10-15 09:24:07 -0500 |
| commit | 0c29cf2df41600d3906d521c72991c7686018b71 (patch) | |
| tree | ff907f90ec9467e12874c9b2c961549d0e7caf74 /tests/test_decorator.py | |
| parent | 851c368e3c158e264358de10446f5b5de240e534 (diff) | |
| download | pyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.gz pyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.bz2 pyramid-0c29cf2df41600d3906d521c72991c7686018b71.zip | |
format source using black
Diffstat (limited to 'tests/test_decorator.py')
| -rw-r--r-- | tests/test_decorator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_decorator.py b/tests/test_decorator.py index 4b9313e06..2dcc9b4d3 100644 --- a/tests/test_decorator.py +++ b/tests/test_decorator.py @@ -1,13 +1,16 @@ import unittest + class TestReify(unittest.TestCase): def _makeOne(self, wrapped): from pyramid.decorator import reify + return reify(wrapped) def test___get__withinst(self): def wrapped(inst): return 'a' + decorator = self._makeOne(wrapped) inst = Dummy() result = decorator.__get__(inst) @@ -17,6 +20,7 @@ class TestReify(unittest.TestCase): def test___get__noinst(self): def wrapped(inst): return 'a' # pragma: no cover + decorator = self._makeOne(wrapped) result = decorator.__get__(None) self.assertEqual(result, decorator) |
