From 717ff3b75bca054a7f14de43a6ef6fc0535d3953 Mon Sep 17 00:00:00 2001 From: Nima Talebi Date: Sat, 23 May 2009 18:39:30 +1000 Subject: Expanding the test case to include the POC demo The POC demo does not actually do much testing yet, other than just working or not working - but it's in place now for future enhancements. --- unit-tests/POCDemo.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 unit-tests/POCDemo.py (limited to 'unit-tests/POCDemo.py') diff --git a/unit-tests/POCDemo.py b/unit-tests/POCDemo.py new file mode 100644 index 0000000..475a62b --- /dev/null +++ b/unit-tests/POCDemo.py @@ -0,0 +1,12 @@ +import libxml2 +import demomodule # This is our core module + +class POCDemo: + """Demo of a wrapper class to return proper python libxml2 objects""" + + def GetXMLdoc(self): + return libxml2.xmlDoc( _obj = demomodule.dump_doc() ) + + def GetXMLnode(self): + return libxml2.xmlNode( _obj = demomodule.dump_node() ) + -- cgit