summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-18 13:48:52 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-18 13:48:52 +0000
commit4b189e807e77894dde0df32cefae8ab5f530ce16 (patch)
treec4a6880d40e0d300c1ecc877a9fe7bfaba2dbec6
parent2343c69ba224db0f6c7cca4be5496ce1f3382baf (diff)
downloadpython-dmidecode-4b189e807e77894dde0df32cefae8ab5f530ce16.tar.gz
python-dmidecode-4b189e807e77894dde0df32cefae8ab5f530ce16.tar.xz
python-dmidecode-4b189e807e77894dde0df32cefae8ab5f530ce16.zip
The dmidecode.type() call not takes ints, not strings.
Adding an example directory. Adding test case. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@116 abc39116-655e-4be6-ad55-d661dc543056
-rwxr-xr-xtest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 0000000..d85154b
--- /dev/null
+++ b/test.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+#.awk '$0 ~ /case [0-9]+: .. 3/ { print $2 }' src/dmidecode.c|tr ':\n' ', '
+
+from pprint import pprint
+import dmidecode
+for i in (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 126, 127):
+ print i
+ pprint(dmidecode.type(i))
+