#NEWLINE# def test_isdisjoint( session ) : #NEWLINE# #INDENT# set_ = session . set ( key ( 'test_set_isdisjoint' ) , S ( 'abc' ) , Set ) #NEWLINE# setj = session . set ( key ( 'test_set_isdisjoint2' ) , S ( 'cde' ) , Set ) #NEWLINE# setd = session . set ( key ( 'test_set_isdisjoint3' ) , S ( 'def1' ) , Set ) #NEWLINE# assert ( not set_ . isdisjoint ( 'cde' ) ) #NEWLINE# assert set_ . isdisjoint ( 'def' ) #NEWLINE# assert ( not set_ . isdisjoint ( S ( 'cde' ) ) ) #NEWLINE# assert set_ . isdisjoint ( S ( 'def' ) ) #NEWLINE# assert ( not set_ . isdisjoint ( setj ) ) #NEWLINE# assert set_ . isdisjoint ( setd ) #NEWLINE# assert ( not setj . isdisjoint ( set_ ) ) #NEWLINE# assert setd . isdisjoint ( set_ ) #NEWLINE# setx = session . set ( key ( 'test_setx_isdisjoint' ) , S ( [ 1 , 2 , 3 ] ) , IntSet ) #NEWLINE# setxj = session . set ( key ( 'test_setx_isdisjoint2' ) , S ( [ 3 , 4 , 5 ] ) , IntSet ) #NEWLINE# setxd = session . set ( key ( 'test_setx_isdisjoint3' ) , S ( [ 4 , 5 , 6 ] ) , IntSet ) #NEWLINE# assert ( not setx . isdisjoint ( [ 3 , 4 , 5 ] ) ) #NEWLINE# assert setx . isdisjoint ( [ 4 , 5 , 6 ] ) #NEWLINE# assert ( not setx . isdisjoint ( S ( [ 3 , 4 , 5 ] ) ) ) #NEWLINE# assert setx . isdisjoint ( S ( [ 4 , 5 , 6 ] ) ) #NEWLINE# assert ( not setx . isdisjoint ( setxj ) ) #NEWLINE# assert setx . isdisjoint ( setxd ) #NEWLINE# assert ( not setxj . isdisjoint ( setx ) ) #NEWLINE# assert setxd . isdisjoint ( setx ) #NEWLINE# assert setd . isdisjoint ( setx ) #NEWLINE# assert setx . isdisjoint ( setd ) #NEWLINE# assert setd . isdisjoint ( session ) #NEWLINE# assert setd . isdisjoint ( setxd ) #NEWLINE# assert setxj . isdisjoint ( setd ) #NEWLINE# assert setxd . isdisjoint ( setd )