#NEWLINE# def compare_item( self , item_rsp , webhook ) : #NEWLINE# #INDENT# self . assertEqual ( item_rsp [ 'id' ] , webhook . pk ) #NEWLINE# self . assertEqual ( item_rsp [ 'enabled' ] , webhook . enabled ) #NEWLINE# self . assertEqual ( item_rsp [ 'url' ] , webhook . url ) #NEWLINE# self . assertEqual ( item_rsp [ 'custom_content' ] , webhook . custom_content ) #NEWLINE# self . assertEqual ( item_rsp [ 'secret' ] , webhook . secret ) #NEWLINE# self . assertEqual ( resources . webhook . parse_apply_to_field ( item_rsp [ 'apply_to' ] , None ) , webhook . apply_to ) #NEWLINE# self . assertEqual ( set ( ( item [ 'title' ] for item in item_rsp [ 'repositories' ] ) ) , set ( ( repo . name for repo in webhook . repositories . all ( ) ) ) ) #NEWLINE# self . assertEqual ( item_rsp [ 'events' ] , webhook . events ) #NEWLINE# self . assertEqual ( item_rsp [ 'extra_data' ] , webhook . extra_data )