def test_listwriter():
 lst = []
 writer = html.ListWriter(lst)
 for i in range(5):
  writer.write(i)
 for ch in 'abcde':
  writer.write(ch)
 assert (lst == [0, 1, 2, 3, 4, 'a', 'b', 'c', 'd', 'e'])

def test_listwriter ( ) : lst = [ ] writer = html . ListWriter ( lst ) for i in range ( 5 ) : writer . write ( i ) for ch in 'abcde' : writer . write ( ch ) assert ( lst == [ 0 , 1 , 2 , 3 , 4 , 'a' , 'b' , 'c' , 'd' , 'e' ] )
test to make sure the class listwriter behaves properly .