aboutsummaryrefslogtreecommitdiff
path: root/tests/test_systemfeature.py
blob: abb4da7fb41300d7a6c97bb940aeb0078b99ad40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()