diff options
| author | John Sun <jsun@sightmachine.com> | 2014-04-02 17:08:07 -0700 |
|---|---|---|
| committer | John Sun <jsun@sightmachine.com> | 2014-04-02 17:08:07 -0700 |
| commit | c40423dd47d6ba56469ae1faf306d95d6be5cd5c (patch) | |
| tree | 3333906a098b9c22a3e89ec53473a0acec7d0c43 /pyvimba/tests/test_systemfeature.py | |
| parent | 01e24424971ffa9faa5dabf2e6724cea997a2afb (diff) | |
| download | pymba-c40423dd47d6ba56469ae1faf306d95d6be5cd5c.tar.gz pymba-c40423dd47d6ba56469ae1faf306d95d6be5cd5c.zip | |
Add some tests
test_systemfeature.py is broken because I think this is invalid API.
Diffstat (limited to 'pyvimba/tests/test_systemfeature.py')
| -rw-r--r-- | pyvimba/tests/test_systemfeature.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pyvimba/tests/test_systemfeature.py b/pyvimba/tests/test_systemfeature.py new file mode 100644 index 0000000..2fb5760 --- /dev/null +++ b/pyvimba/tests/test_systemfeature.py @@ -0,0 +1,19 @@ +#!/usr/bin/python + +from pyvimba.vimba import * + +def test_systemfeature(): + # get system object + vimba = Vimba() + system = vimba.getSystem() + + # get system object + system = vimba.getSystem() + + # list system features + for featureName in system.getFeatureNames(): + print 'System feature:', featureName + + # shutdown Vimba + vimba.shutdown() + |
