#NEWLINE# def test_valid( self ) : #NEWLINE# #INDENT# valid = '\n        <stix:STIX_Package xmlns:stix="http://stix.mitre.org/stix-1"\n            version="1.2" id="example:Package-1">\n        </stix:STIX_Package>\n        ' #NEWLINE# parser = EntityParser ( ) #NEWLINE# package = parser . parse_xml ( StringIO ( valid ) ) #NEWLINE# self . assertEqual ( 'example:Package-1' , package . id_ )