summaryrefslogtreecommitdiffstats
path: root/unit-tests
Commit message (Collapse)AuthorAgeFilesLines
* Removed no longer needed fileDavid Sommerseth2009-06-101-1/+0
|
* Discovered another issue with Python and importsDavid Sommerseth2009-06-101-0/+1
| | | | | | | | | | | | | | | | | | The shard library got renamed to dmidecodemodule.so, and this was not clever. When you do 'import dmidecode' in Python, it will look for files in this order: dmidecode dmidecode.so dmidecodemodule.so dmidecode.py dmidecode.pyc This is of course a problem when the wrapper introduced in commit 65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and Python attempts to load dmidecodemodule.so before dmidecode.py. To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so.
* Fixed import issues with dmidecodeDavid Sommerseth2009-06-102-12/+12
| | | | | | | | | | | | | | | | As we now include libxml2 and the required libxml2mod (which is used to wrap xmlDoc and xmlNode data into Python objects), importing only dmidecode caused a failure. If adding import libxml2 first, everything would work out fine. To avoid this issue, due to backwards compatibility, a tiny dmidecode wrapper is implemted as well. The dmidecode.so module is now renamed to dmidecodemodule.so, and the wrapper is now called dmidecode.py. To simplify things, the dmidecodeXML module introduced in commit b25b2ca548508cd2beb26f465b7bc5a296592461 is not merged into the new dmidecode.py The constants mentioned are now called dmidecode.DMIXML_NODE and dmidecode.DMIXML_DOC and to instantiate the dmidecodeXML class, dmidecode.dmidecodeXML() is used.
* Updated unit-test to check the XML APIDavid Sommerseth2009-06-101-1/+72
|
* CleanupNima Talebi2009-05-243-4/+7
|
* Completed preliminary reimplementation of type()Nima Talebi2009-05-241-0/+2
| | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions.
* Expanding the test case to include the POC demoNima Talebi2009-05-239-0/+891
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.