#NEWLINE# def test_returns_numbering_definition_with_valid_num_id( self ) : #NEWLINE# #INDENT# xml = '\n            <numbering>\n                <abstractNum abstractNumId="1">\n                    <name val="foo"/>\n                </abstractNum>\n                <num numId="1">\n                    <abstractNumId val="1" />\n                </num>\n            </numbering>\n        ' #NEWLINE# numbering = self . _load_from_xml ( xml ) #NEWLINE# num_definition = numbering . get_numbering_definition ( '1' ) #NEWLINE# assert isinstance ( xml , AbstractNum ) #NEWLINE# self . assertEqual ( num_definition . name , 'foo' )