File: testHTML.py

package info (click to toggle)
egenix-mx-base 3.2.1-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,496 kB
  • sloc: ansic: 21,976; python: 17,192; sh: 137; makefile: 116
file content (17 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from mx.TextTools.Examples.HTML import *

def test():
    text = """<frame noresize>"""

    utext = upper(text)
    print "UPPER:", utext
    result, taglist, nextindex = tag(utext,htmltable)
    print_tags(text,taglist)

    print
    utext = lower(text)
    print "LOWER", utext
    result, taglist, nextindex = tag(utext,htmltable)
    print_tags(text,taglist)

test()