Beispiel #1
0
 def test_with_initial_content(self):
     li = ListItem("Initial", "test")
     li.append("content")
     assert_equal([b"<li>", b"Initial", b"test", b"content", b"</li>"],
                  list(iter(li)))
Beispiel #2
0
 def test_with_initial_content(self):
     li = ListItem("Initial", "test")
     li.append("content")
     assert_equal([b"<li>", b"Initial", b"test", b"content", b"</li>"],
                  list(iter(li)))
Beispiel #3
0
 def test_without_initial_content(self):
     li = ListItem()
     li.append("Test")
     assert_equal([b"<li>", b"Test", b"</li>"], list(iter(li)))
Beispiel #4
0
 def test_without_initial_content(self):
     li = ListItem()
     li.append("Test")
     assert_equal([b"<li>", b"Test", b"</li>"], list(iter(li)))