diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-18 13:48:52 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-12-18 13:48:52 +0000 |
commit | 4b189e807e77894dde0df32cefae8ab5f530ce16 (patch) | |
tree | c4a6880d40e0d300c1ecc877a9fe7bfaba2dbec6 /test.py | |
parent | 2343c69ba224db0f6c7cca4be5496ce1f3382baf (diff) | |
download | python-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
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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)) + |