#NEWLINE# def test_boolean_context_compat2( self ) : #NEWLINE# #INDENT# i1 = MultiIndex . from_tuples ( [ ( 'A' , 1 ) , ( 'A' , 2 ) ] ) #NEWLINE# i2 = MultiIndex . from_tuples ( [ ( 'A' , 1 ) , ( 'A' , 3 ) ] ) #NEWLINE# common = i1 . intersection ( self ) #NEWLINE# def f( ) : #NEWLINE# #INDENT# if common : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# tm . assertRaisesRegexp ( ValueError , 'The truth value of a' , f )