Add select_config example to get_piezo_config's doctest.
authorW. Trevor King <wking@drexel.edu>
Thu, 8 Sep 2011 15:20:51 +0000 (11:20 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 8 Sep 2011 15:20:51 +0000 (11:20 -0400)
pypiezo/test.py

index 20a383b27509cbb66638afabe3a9c288c679bf14..bdc90a2e4a632ff63ed654ae44bd6f8e7264b186 100644 (file)
@@ -91,6 +91,9 @@ def get_piezo_config(storage=None):
         conversion-origin: 0
         inverse-conversion-coefficients: 0, 1
         inverse-conversion-origin: 0
+    >>> d = p.select_config('inputs', 'deflection')
+    >>> d['name']
+    'deflection'
     """
     piezo_config = _PiezoConfig(storage=storage)
     piezo_config['name'] = 'test piezo'