#NEWLINE# def test__collect_attrs( self ) : #NEWLINE# #INDENT# sot = resource2 . Resource ( ) #NEWLINE# expected_attrs = [ 'body' , 'header' , 'uri' ] #NEWLINE# sot . _consume_attrs = mock . Mock ( ) #NEWLINE# sot . _consume_attrs . side_effect = expected_attrs #NEWLINE# actual_attrs = sot . _collect_attrs ( dict ( ) ) #NEWLINE# self . assertItemsEqual ( expected_attrs , actual_attrs )