Home | History | Annotate | Download | only in tests

Lines Matching defs:str

12 str = doc.serialize()
13 if str != """<?xml version="1.0"?>
18 str = doc.serialize("iso-8859-1")
19 if str != """<?xml version="1.0" encoding="iso-8859-1"?>
24 str = doc.serialize(format=1)
25 if str != """<?xml version="1.0"?>
32 str = doc.serialize("iso-8859-1", 1)
33 if str != """<?xml version="1.0" encoding="iso-8859-1"?>
45 str = root.serialize()
46 if str != """<root><foo>hello</foo></root>""":
49 str = root.serialize("iso-8859-1")
50 if str != """<root><foo>hello</foo></root>""":
53 str = root.serialize(format=1)
54 if str != """<root>
59 str = root.serialize("iso-8859-1", 1)
60 if str != """<root>
71 str = doc.serialize()
72 if str != """<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
77 str = doc.serialize("ISO-8859-1")
78 if str != """<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
83 str = doc.serialize(format=1)
84 if str != """<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
95 str = doc.serialize("iso-8859-1", 1)
96 if str != """<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
113 str = root.serialize()
114 if str != """<html><head><title>Hello</title></head><body><p>hello</p></body></html>""":
117 str = root.serialize("ISO-8859-1")
118 if str != """<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Hello</title></head><body><p>hello</p></body></html>""":
121 str = root.serialize(format=1)
122 if str != """<html>
131 str = root.serialize("iso-8859-1", 1)
132 if str != """<html>