#NEWLINE# def assert_url_called( self , method , url , count = 1 ) : #NEWLINE# #INDENT# self . assertIn ( ( method , url ) , self . client . transport . calls ) #NEWLINE# calls = self . client . transport . calls [ ( method , url ) ] #NEWLINE# self . assertEquals ( count , len ( calls ) ) #NEWLINE# return calls