#NEWLINE# def test_cloned_intersection( self ) : #NEWLINE# #INDENT# t1 = table ( 't1' , column ( 'x' ) ) #NEWLINE# t2 = table ( 't2' , column ( 'x' ) ) #NEWLINE# s1 = t1 . select ( ) #NEWLINE# s2 = t2 . select ( ) #NEWLINE# s3 = t1 . select ( ) #NEWLINE# s1c1 = s1 . _clone ( ) #NEWLINE# s1c2 = s1 . _clone ( ) #NEWLINE# s2c1 = s2 . _clone ( ) #NEWLINE# s3c1 = s3 . _clone ( ) #NEWLINE# eq_ ( expression . _cloned_intersection ( [ s1c1 , s3c1 ] , [ s2c1 , s1c2 ] ) , set ( [ s1c1 ] ) )