#NEWLINE# def test_xmlfile( self ) : #NEWLINE# #INDENT# temp = self . mktemp ( ) #NEWLINE# f = file ( temp , 'w' ) #NEWLINE# f . write ( self . nsdoc ) #NEWLINE# f . close ( ) #NEWLINE# loader = loaders . xmlfile ( temp ) #NEWLINE# self . assertEquals ( id ( loader . load ( ) ) , id ( loader . load ( ) ) ) #NEWLINE# loader = loaders . xmlfile ( temp , pattern = '1' ) #NEWLINE# self . assertEquals ( id ( loader . load ( ) ) , id ( loader . load ( ) ) ) #NEWLINE# l1 = loaders . xmlfile ( temp , pattern = '1' ) #NEWLINE# l2 = loaders . xmlfile ( temp , pattern = '1' ) #NEWLINE# self . assertNotEqual ( id ( l1 . load ( ) ) , id ( l2 . load ( ) ) ) #NEWLINE# l1 = loaders . xmlfile ( temp , pattern = '1' ) #NEWLINE# l2 = loaders . xmlfile ( temp , pattern = '2' ) #NEWLINE# self . assertNotEqual ( id ( l1 . load ( ) ) , id ( l2 . load ( ) ) )