def METHOD_NAME(self):
    """Method to test available path"""
    # Test when the path is available
    with patch('app.api.helpers.import_helpers.os.path.isfile', return_value=False):
        expected_response = 'testfile.pdf'
        actual_response = _available_path('test', 'file.pdf')
        self.assertEqual(expected_response, actual_response)
    # Test when the entered path already exists
    with patch(
        'app.api.helpers.import_helpers.os.path.isfile',
        side_effect=[True, True, False],
    ):
        expected_response = 'testfilename2'
        actual_response = _available_path('test', 'filename')
        self.assertEqual(expected_response, actual_response)