def test_read_6 (self) : r = StringIO.StringIO("<root><child/></root>\n\n<root></root>\n<root></root><child></child>") b = read_input(r) self.assert_(b == "<root><child/></root>\n\n<root></root>\n<root></root><child></child>")
def test_read_4 (self) : r = StringIO.StringIO("\n") b = read_input(r) self.assert_(b == "\n")
def test_read_5 (self) : r = StringIO.StringIO("<root></root>\n\n<root></root>") b = read_input(r) self.assert_(b == "<root></root>\n\n<root></root>")
def test_read_3 (self) : r = StringIO.StringIO("\n<root>\n</root>\n") b = read_input(r) self.assert_(b == "\n<root>\n</root>\n")