v/pol
1
0
mirror of https://github.com/taroved/pol synced 2025-05-16 22:30:09 -07:00
pol/tests.py
2017-07-10 08:40:15 -04:00

12 lines
256 B
Python

from lxml import etree
from feed import element_to_string
def test1_get_inner_html():
root = etree.fromstring('<a>1<b>2</b>3<c>4</c>5</a>')
assert element_to_string(root) == '1<b>2</b>3<c>4</c>5'
test1_get_inner_html()
print 'All tests are OK'