#NEWLINE# def test_contains( ) : #NEWLINE# #INDENT# slt = SortedListWithKey ( key = modulo , load = 7 ) #NEWLINE# assert ( 0 not in slt ) #NEWLINE# slt . update ( range ( 100 ) ) #NEWLINE# for val in range ( 100 ) : #NEWLINE# #INDENT# assert ( val in slt ) #NEWLINE# #UNINDENT# assert ( 100 not in slt ) #NEWLINE# slt . _check ( ) #NEWLINE# slt = SortedListWithKey ( range ( 100 ) , key = modulo , load = 4 ) #NEWLINE# assert all ( ( ( val not in slt ) for val in range ( 100 , 200 ) ) )