Skip to content

Commit

Permalink
More stylefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jan 25, 2016
1 parent 1d38ed3 commit 3f617ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -8,6 +8,6 @@ norecursedirs = .* env* _build *.egg
universal = 1

[flake8]
ignore = E126,E241,E272
ignore = E126,E241,E272,E402,E731,W503
exclude=.tox,examples,docs
max-line-length=100
7 changes: 5 additions & 2 deletions tests/test_http.py
Expand Up @@ -247,7 +247,8 @@ def test_parse_options_header(self):
assert http.parse_options_header('something; foo="otherthing"; meh=; bleh') == \
('something', {'foo': 'otherthing', 'meh': None, 'bleh': None})
# Issue #404
assert http.parse_options_header('multipart/form-data; name="foo bar"; filename="bar foo"') == \
assert http.parse_options_header('multipart/form-data; name="foo bar"; '
'filename="bar foo"') == \
('multipart/form-data', {'name': 'foo bar', 'filename': 'bar foo'})
# Examples from RFC
assert http.parse_options_header('audio/*; q=0.2, audio/basic') == \
Expand All @@ -260,7 +261,9 @@ def test_parse_options_header(self):
multiple=True) == \
('text/plain', {'q': '0.5'}, "text/html", {},
"text/x-dvi", {'q': '0.8'}, "text/x-c", {})
assert http.parse_options_header('text/plain; q=0.5, text/html\n text/x-dvi; q=0.8, text/x-c') == \
assert http.parse_options_header('text/plain; q=0.5, text/html\n'
' '
'text/x-dvi; q=0.8, text/x-c') == \
('text/plain', {'q': '0.5'})

def test_dump_options_header(self):
Expand Down

0 comments on commit 3f617ac

Please sign in to comment.