Skip to content
Snippets Groups Projects
Commit fd1d01e7 authored by Rob Applin's avatar Rob Applin Committed by Robert Applin
Browse files

refs #21465 Export IObject::getShapeXML

parent 56369ea9
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <boost/python/class.hpp> #include <boost/python/class.hpp>
#include <boost/python/register_ptr_to_python.hpp> #include <boost/python/register_ptr_to_python.hpp>
using Mantid::Geometry::CSGObject;
using Mantid::Geometry::IObject; using Mantid::Geometry::IObject;
using namespace boost::python; using namespace boost::python;
......
...@@ -72,9 +72,11 @@ class SampleTest(unittest.TestCase): ...@@ -72,9 +72,11 @@ class SampleTest(unittest.TestCase):
sample = self._ws.sample() sample = self._ws.sample()
self.assertEquals(type(sample.getShape()), CSGObject) self.assertEquals(type(sample.getShape()), CSGObject)
#def test_get_shape_xml(self): def test_get_shape_xml(self):
# sample = self._ws.sample() sample = self._ws.sample()
# self.assertEquals(type(sample.getShapeXML()), str) shape = sample.getShape()
xml = shape.getShapeXML()
self.assertEquals(type(xml), str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment