summaryrefslogtreecommitdiffstats
path: root/unit-tests/POCDemo.py
diff options
context:
space:
mode:
authorNima Talebi <nima@autonomy.net.au>2009-05-23 18:39:30 +1000
committerNima Talebi <nima@autonomy.net.au>2009-05-23 18:39:30 +1000
commit717ff3b75bca054a7f14de43a6ef6fc0535d3953 (patch)
tree0cf51391297472399778b8818e3a983f83a636d5 /unit-tests/POCDemo.py
parentcc76255fecfc9a4168debf1baccd68097d8f7c71 (diff)
downloadpython-dmidecode-717ff3b75bca054a7f14de43a6ef6fc0535d3953.tar.gz
python-dmidecode-717ff3b75bca054a7f14de43a6ef6fc0535d3953.tar.xz
python-dmidecode-717ff3b75bca054a7f14de43a6ef6fc0535d3953.zip
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.
Diffstat (limited to 'unit-tests/POCDemo.py')
-rw-r--r--unit-tests/POCDemo.py12
1 files changed, 12 insertions, 0 deletions
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() )
+