Skip to content

Commit

Permalink
Refs #10023. Tweak usage example testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Aug 1, 2014
1 parent 5ce0054 commit 109696a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Code/Mantid/docs/source/algorithms/SaveParameterFile-v1.rst
Expand Up @@ -34,10 +34,18 @@ Usage
#Save the workspace's instrument's parameters to the given file.
SaveParameterFile(Workspace = ws, Filename = filename, LocationParameters = False)

#Make sure the file was written successfully
if os.path.isfile(filename):
print "Parameters written successfully."

.. testcleanup::

os.remove(filename)

.. testoutput::

Parameters written successfully.

Example Output::

<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit 109696a

Please sign in to comment.