예제 #1
0
def test_append():
    '''test append method'''
    ANS = 2
    e = Element("foo")
    e.append("bar")

    result = e.get_content()
    assert result is ANS
예제 #2
0
def test_content():
    ''' test the content list '''
    ANS = 1
    e = Element("foo")
    e1 = Element("bar")

    result = e.get_content()
    assert result is ANS