1 #!/usr/bin/env python 2 3 from MoinShare import getRegions 4 5 s = """ 6 Test some shared content... 7 8 {{{#!MoinShare 9 Hello! 10 11 This is ''testing'' shared content. 12 }}} 13 14 {{{#!MoinShare format=html 15 <table> 16 <tr> 17 <td>Test some <strong>HTML</strong> content.</td> 18 <td>This is a table.</td> 19 </tr> 20 </table> 21 }}} 22 23 Some trailing content. 24 """ 25 26 regions = getRegions(s) 27 expected = 2 28 29 print regions 30 print 31 print len(regions) == expected, ": length is", len(regions), "==", expected 32 33 # vim: tabstop=4 expandtab shiftwidth=4