David Winegar
d356a570b3
Added closing_wiki_markup support to Tag node
Added support for allowing different wiki syntax for replacing the opening
and closing tags. Added for table support.
10 years ago
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
10 years ago
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.
10 years ago
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.
11 years ago
Marcio Faustino
88c8fb88e0
Switch to `unittest2` to be able to use new features in Python 2.6.
11 years ago
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
11 years ago
Ben Kurtovic
44484daef3
Updating tests for new __children__ protocol.
11 years ago
Ben Kurtovic
066049b46a
Update email address.
11 years ago
Ben Kurtovic
ccfc1cbe06
Add test cases for Tag's new has/get/add/remove methods.
11 years ago
Ben Kurtovic
7a4b1625d3
Strip self-closing tags correctly.
11 years ago
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
11 years ago
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
11 years ago
Ben Kurtovic
16bb133c58
Remove unused functions.
11 years ago
Ben Kurtovic
e3f215f667
Finish test_tag
11 years ago
Ben Kurtovic
2c4bff1d68
Start test_tag; some fixes for Tags.
11 years ago
Ben Kurtovic
1b4c01b4c0
Implement assertTagNodeEqual(), start test_tag(), add to tags.mwtest.
11 years ago