mirror of
https://github.com/taroved/pol
synced 2025-05-16 14:20:10 -07:00
12 lines
256 B
Python
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'
|