diff options
Diffstat (limited to 'tests/test_systemfeature.py')
| -rw-r--r-- | tests/test_systemfeature.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_systemfeature.py b/tests/test_systemfeature.py new file mode 100644 index 0000000..abb4da7 --- /dev/null +++ b/tests/test_systemfeature.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +from __future__ import absolute_import, print_function, division +from pymba import * + + +def test_systemfeature(): + # get system object + with Vimba() as vimba: + system = vimba.getSystem() + + # list system features + for featureName in system.getFeatureNames(): + print('System feature:', featureName) + fInfo = system.getFeatureInfo(featureName) + for field in fInfo.getFieldNames(): + print("\t", featureName, ":", field, getattr(fInfo, field)) + + +if __name__ == '__main__': + test_systemfeature()
\ No newline at end of file |
