def test_as_string(self): input_tree = etree.fromstring('<root></root>') doc = XMLFeatureInfoDoc(input_tree) eq_(strip_whitespace(doc.as_string()), b'<root/>')
def test_as_string(self): input_tree = etree.fromstring("<root></root>") doc = XMLFeatureInfoDoc(input_tree) assert strip_whitespace(doc.as_string()) == b"<root/>"