예제 #1
0
def test_snippets():
    """http://code.pediapress.com/wiki/ticket/220"""
    from mwlib import snippets
    for s in snippets.get_all():
        print "testing", repr(s.txt)
        xhtml = getXHTML(s.txt)
        validate(xhtml)
예제 #2
0
def test_examples():
    s = snippets.get_all()
    for x in s:
        yield doit, x
예제 #3
0
def test_snippets():
    from mwlib import snippets
    for s in snippets.get_all():
        print "testing", repr(s.txt)
        xml = getXML(s.txt)
예제 #4
0
def test_examples():
    s=snippets.get_all()
    for x in s:
        yield doit, x