refs #6636. Expose method to python and test.