Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for #115 #132

Closed
gsnedders opened this issue Dec 23, 2013 · 1 comment
Closed

Add test for #115 #132

gsnedders opened this issue Dec 23, 2013 · 1 comment

Comments

@gsnedders
Copy link
Member

Not sure why #115 has no test, but it appears not to.

walker = html5lib.getTreeWalker("lxml")
tree = html5lib.parseFragment("a", treebuilder="lxml")
assert list(walker(tree)) == [{'data': 'a', u'type': 'Characters'}]

That should work, but we probably want to test with all tree walkers.

@gsnedders
Copy link
Member Author

Or maybe that needs to be something like å and not a (i.e., non-ASCII)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant