From 7ff2d0c1c31021d6941a1c8c2bfe6362cff9aaa5 Mon Sep 17 00:00:00 2001 From: ulif <uli@gnufix.de> Date: Wed, 11 May 2016 18:29:36 +0200 Subject: [PATCH] pep8. --- tests/test_diceware.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_diceware.py b/tests/test_diceware.py index 2f8cc3a..0b1b881 100644 --- a/tests/test_diceware.py +++ b/tests/test_diceware.py @@ -150,12 +150,15 @@ class TestHandleOptions(object): def test_handle_options_allows_plugins_updating(self, monkeypatch): # we allow plugins to update our argparser, before being used import diceware + class FakePlugin(object): @classmethod def update_argparser(cls, parser): parser.add_argument('--foo', default=2, type=int) return parser - monkeypatch.setattr(diceware, 'get_random_sources', lambda: dict(foo=FakePlugin)) + + monkeypatch.setattr( + diceware, 'get_random_sources', lambda: dict(foo=FakePlugin)) options = handle_options([]) assert options.foo == 2 -- GitLab