From 0c29cf2df41600d3906d521c72991c7686018b71 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Mon, 15 Oct 2018 01:55:54 -0500 Subject: format source using black --- tests/test_compat.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/test_compat.py') diff --git a/tests/test_compat.py b/tests/test_compat.py index 23ccce82e..46fc7d944 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,6 +1,7 @@ import unittest from pyramid.compat import is_unbound_method + class TestUnboundMethods(unittest.TestCase): def test_old_style_bound(self): self.assertFalse(is_unbound_method(OldStyle().run)) @@ -15,12 +16,17 @@ class TestUnboundMethods(unittest.TestCase): self.assertTrue(is_unbound_method(NewStyle.run)) def test_normal_func_unbound(self): - def func(): return 'OK' + def func(): + return 'OK' self.assertFalse(is_unbound_method(func)) + class OldStyle: - def run(self): return 'OK' + def run(self): + return 'OK' + class NewStyle(object): - def run(self): return 'OK' + def run(self): + return 'OK' -- cgit v1.2.3