1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/test_regions.py Sat Apr 14 00:42:16 2012 +0200
1.3 @@ -0,0 +1,33 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from MoinShare import getRegions
1.7 +
1.8 +s = """
1.9 +Test some shared content...
1.10 +
1.11 +{{{#!MoinShare
1.12 +Hello!
1.13 +
1.14 +This is ''testing'' shared content.
1.15 +}}}
1.16 +
1.17 +{{{#!MoinShare format=html
1.18 +<table>
1.19 +<tr>
1.20 +<td>Test some <strong>HTML</strong> content.</td>
1.21 +<td>This is a table.</td>
1.22 +</tr>
1.23 +</table>
1.24 +}}}
1.25 +
1.26 +Some trailing content.
1.27 +"""
1.28 +
1.29 +regions = getRegions(s)
1.30 +expected = 2
1.31 +
1.32 +print regions
1.33 +print
1.34 +print len(regions) == expected, ": length is", len(regions), "==", expected
1.35 +
1.36 +# vim: tabstop=4 expandtab shiftwidth=4