#NEWLINE# def test_creating_with_a_conflicting_resolved_url_returns_existing( self ) : #NEWLINE# #INDENT# self . assertEqual ( self . before [ 'resolved_url' ] , resp . before [ 'url' ] ) #NEWLINE# record = MINIMALIST_ARTICLE . copy ( ) #NEWLINE# record [ 'resolved_url' ] = record [ 'url' ] #NEWLINE# record [ 'url' ] = 'http://bit.ly/abc' #NEWLINE# resp = self . app . post_json ( '/articles' , { #NEWLINE# #INDENT# 'data' : record , #NEWLINE# #UNINDENT# } , headers = self . headers ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# self . assertDictEqual ( self . before , resp . json [ 'data' ] )