#NEWLINE# def test_bundle_update_simple( self ) : #NEWLINE# #INDENT# doc = ProvDocument ( ) #NEWLINE# doc . set_default_namespace ( EX_URI ) #NEWLINE# b1 = doc . bundle ( 'b1' ) #NEWLINE# b1 . entity ( 'e' ) #NEWLINE# b2 = doc . bundle ( 'b2' ) #NEWLINE# b2 . entity ( 'e' ) #NEWLINE# self . assertRaises ( ProvException , ( lambda : b1 . update ( 1 ) ) ) #NEWLINE# self . assertRaises ( ProvException , ( lambda : b1 . update ( doc ) ) ) #NEWLINE# b1 . update ( b2 ) #NEWLINE# self . assertEqual ( len ( b1 . get_records ( ) ) , 2 )