Skip to content

Commit

Permalink
fixup! Make the serializer behave like a normal func with unknown kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed May 17, 2016
1 parent 04da054 commit 431fde2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions html5lib/tests/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ def testComment():
throwsWithLatin1([["Comment", "\u0101"]])


def testThrowsUnknownOption():
with pytest.raises(TypeError):
HTMLSerializer(foobar=None)


@pytest.mark.parametrize("c", list("\t\n\u000C\x20\r\"'=<>`"))
def testSpecQuoteAttribute(c):
input_ = [["StartTag", "http://www.w3.org/1999/xhtml", "span",
Expand Down

0 comments on commit 431fde2

Please sign in to comment.