#NEWLINE# def test_insert( self ) : #NEWLINE# #INDENT# d = SortedDict ( ) #NEWLINE# with warnings . catch_warnings ( record = True ) as w : #NEWLINE# #INDENT# warnings . simplefilter ( 'always' ) #NEWLINE# d . insert ( 0 , 'hello' , 'world' ) #NEWLINE# #UNINDENT# assert ( w [ 0 ] . category is PendingDeprecationWarning )