diff options
| author | morefigs <morefigs@gmail.com> | 2018-06-22 15:59:49 +1000 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2018-06-22 15:59:49 +1000 |
| commit | fac2f7b87ebebf0a3255b9d02cddff24fa194226 (patch) | |
| tree | 04e1a5633bba9cff7a0d31908f2011f2de7a565f /tests/test_systemfeature.py | |
| parent | 4b22b288484dbdd7b614334cc328588df3e141ec (diff) | |
| download | pymba-fac2f7b87ebebf0a3255b9d02cddff24fa194226.tar.gz pymba-fac2f7b87ebebf0a3255b9d02cddff24fa194226.zip | |
rename
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 |
