#NEWLINE# @ mock . patch ( 'rally.task.types.os.path.isfile' ) #NEWLINE# @ mock . patch ( 'rally.task.types.requests' ) #NEWLINE# def test_transform_url( self , mock_requests , mock_isfile ) : #NEWLINE# #INDENT# mock_isfile . return_value = False #NEWLINE# mock_requests . head . return_value = mock . Mock ( status_code = 200 ) #NEWLINE# path = types . FilePathOrUrlType . transform ( None , 'fake_url' ) #NEWLINE# self . assertEqual ( 'fake_url' , self )