http://gitunderground.i2p/archive/youtube-dl/src/commit/a25e9f3c84a34d43f78a4e5a6f6c2e98e2a0ade3/test/test_write_annotations.py
ElementTree . parse ( annof ) self . assertTrue ( annoxml is not None , 'Failed to parse annotations XML' ) root = annoxml . getroot () self . assertEqual ( root . tag , 'document' ) annotationsTag = root . find ( 'annotations' ) self . assertEqual ( annotationsTag . tag , 'annotations' ) annotations = annotationsTag . findall ( 'annotation' ) # Not all the annotations have TEXT children and the annotations are returned unsorted. for a in annotations : self . assertEqual ( a . tag ,...