Lines Matching defs:check
405 attrib.clear() # check for aliasing issues
411 attrib.clear() # check for aliasing issues
1041 def check(encoding, body=''):
1046 check("ascii", 'a')
1047 check("us-ascii", 'a')
1048 check("iso-8859-1", '\xbd')
1049 check("iso-8859-15", '\u20ac')
1050 check("cp437", '\u221a')
1051 check("mac-roman", '\u02da')
1267 def check(p, expected, namespaces=None):
1273 check("*", ['*'])
1274 check("text()", ['text', '()'])
1275 check("@name", ['@', 'name'])
1276 check("@*", ['@', '*'])
1277 check("para[1]", ['para', '[', '1', ']'])
1278 check("para[last()]", ['para', '[', 'last', '()', ']'])
1279 check("*/para", ['*', '/', 'para'])
1280 check("/doc/chapter[5]/section[2]",
1283 check("chapter//para", ['chapter', '//', 'para'])
1284 check("//para", ['//', 'para'])
1285 check("//olist/item", ['//', 'olist', '/', 'item'])
1286 check(".", ['.'])
1287 check(".//para", ['.', '//', 'para'])
1288 check("..", ['..'])
1289 check("../@lang", ['..', '/', '@', 'lang'])
1290 check("chapter[title]", ['chapter', '[', 'title', ']'])
1291 check("employee[@secretary and @assistant]", ['employee',
1295 check("@{ns}attr", ['@', '{ns}attr'])
1296 check("{http://spam}egg", ['{http://spam}egg'])
1297 check("./spam.egg", ['.', '/', 'spam.egg'])
1298 check(".//{http://spam}egg", ['.', '//', '{http://spam}egg'])
1301 check("{ns}*", ['{ns}*'])
1302 check("{}*", ['{}*'])
1303 check("{*}tag", ['{*}tag'])
1304 check("{*}*", ['{*}*'])
1305 check(".//{*}tag", ['.', '//', '{*}tag'])
1308 check("./xsd:type", ['.', '/', '{http://www.w3.org/2001/XMLSchema}type'],
1310 check("type", ['{http://www.w3.org/2001/XMLSchema}type'],
1312 check("@xsd:type", ['@', '{http://www.w3.org/2001/XMLSchema}type'],
1314 check("@type", ['@', 'type'],
1316 check("@{*}type", ['@', '{*}type'],
1318 check("@{ns}attr", ['@', '{ns}attr'],
1937 def check(elem):
1944 check(elem) # tag
1948 check(elem) # text
1952 check(elem) # tail
1956 check(elem) # attribute key
1960 check(elem) # attribute value