#NEWLINE# def test_contains( session ) : #NEWLINE# #INDENT# set_ = session . set ( key ( 'test_set_contains' ) , S ( 'abc' ) , Set ) #NEWLINE# assert ( 'a' in set_ ) #NEWLINE# assert ( 'd' not in set_ ) #NEWLINE# setx = session . set ( key ( 'test_setx_contains' ) , S ( [ 1 , 2 , 3 ] ) , IntSet ) #NEWLINE# assert ( 1 in setx ) #NEWLINE# assert ( 4 not in setx ) #NEWLINE# assert ( '1' not in setx ) #NEWLINE# assert ( '4' not in setx )