Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
il y a 10 ans
Ben Kurtovic
8bc7ea669d
Improve test coverage; fix some node-related bugs.
* Parameters with non-integer keys can no longer be created with
showkey=False, nor have the value of this attribute be set to False
later.
* Calling Template.remove() with a Parameter object that is not part of
the template now raises ValueError instead of doing nothing.
* Added tests for HTMLEntity._unichr() being called with out-of-range
codepoints.
* Added tests for Tag.__children__() and Tag.__showtree__() involving
attributes that have no values.
il y a 10 ans
Ben Kurtovic
1312a1fb8a
Some clean up for Python 2.6 support.
* Removed unittest2 dependency on Python >2.6.
* Moved discover_tests.py into tests/.
* tokenizer.c: Fixed errors noted by -Wshorten-64-to-32.
il y a 10 ans
Marcio Faustino
88c8fb88e0
Switch to `unittest2` to be able to use new features in Python 2.6.
il y a 10 ans
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
il y a 10 ans
Ben Kurtovic
44484daef3
Updating tests for new __children__ protocol.
il y a 10 ans
Ben Kurtovic
066049b46a
Update email address.
il y a 11 ans
Ben Kurtovic
ccfc1cbe06
Add test cases for Tag's new has/get/add/remove methods.
il y a 11 ans
Ben Kurtovic
7a4b1625d3
Strip self-closing tags correctly.
il y a 11 ans
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
il y a 11 ans
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
il y a 11 ans
Ben Kurtovic
16bb133c58
Remove unused functions.
il y a 11 ans
Ben Kurtovic
e3f215f667
Finish test_tag
il y a 11 ans
Ben Kurtovic
2c4bff1d68
Start test_tag; some fixes for Tags.
il y a 11 ans
Ben Kurtovic
1b4c01b4c0
Implement assertTagNodeEqual(), start test_tag(), add to tags.mwtest.
il y a 11 ans