Beispiel #1
0
 def test_append_extend(self):
     element = Element("div")
     element.append("Hello")
     element.extend([", ", "World", "!"])
     assert_equal(4, len(element))
     element.append_raw("Hello")
     element.extend_raw([", ", "World", "!"])
     assert_equal(8, len(element))
Beispiel #2
0
 def test_append_extend(self):
     element = Element("div")
     element.append("Hello")
     element.extend([", ", "World", "!"])
     assert_equal(4, len(element))
     element.append_raw("Hello")
     element.extend_raw([", ", "World", "!"])
     assert_equal(8, len(element))
Beispiel #3
0
 def test_empty(self):
     element = Element("div")
     element.append("foo")
     element.empty()
     assert_equal(0, len(element))
Beispiel #4
0
 def test_empty(self):
     element = Element("div")
     element.append("foo")
     element.empty()
     assert_equal(0, len(element))