diff options
Diffstat (limited to 'tests/test_adjustments.py')
-rw-r--r-- | tests/test_adjustments.py | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/tests/test_adjustments.py b/tests/test_adjustments.py index 420ee4c..69cdf51 100644 --- a/tests/test_adjustments.py +++ b/tests/test_adjustments.py @@ -220,7 +220,9 @@ class TestAdjustments(unittest.TestCase): if WIN: # pragma: no cover # On Windows this is broken, so we raise a ValueError self.assertRaises( - ValueError, self._makeOne, listen="127.0.0.1:http", + ValueError, + self._makeOne, + listen="127.0.0.1:http", ) return @@ -442,18 +444,32 @@ class TestCLI(unittest.TestCase): ["--host=localhost", "--port=80", "--unix-socket-perms=777"] ) self.assertDictContainsSubset( - {"host": "localhost", "port": "80", "unix_socket_perms": "777",}, opts + { + "host": "localhost", + "port": "80", + "unix_socket_perms": "777", + }, + opts, ) self.assertSequenceEqual(args, []) def test_listen_params(self): - opts, args = self.parse(["--listen=test:80",]) + opts, args = self.parse( + [ + "--listen=test:80", + ] + ) self.assertDictContainsSubset({"listen": " test:80"}, opts) self.assertSequenceEqual(args, []) def test_multiple_listen_params(self): - opts, args = self.parse(["--listen=test:80", "--listen=test:8080",]) + opts, args = self.parse( + [ + "--listen=test:80", + "--listen=test:8080", + ] + ) self.assertDictContainsSubset({"listen": " test:80 test:8080"}, opts) self.assertSequenceEqual(args, []) |