Browse Source

Added test method for Sink.output

Clara Hobbs 7 years ago
parent
commit
342d66ebb5
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      test_pdbuddy/__init__.py

+ 12
- 0
test_pdbuddy/__init__.py View File

101
             # essentially test_get_cfg_index.
101
             # essentially test_get_cfg_index.
102
             self.assertIsInstance(pdbs.get_cfg(0), pdbuddy.SinkConfig)
102
             self.assertIsInstance(pdbs.get_cfg(0), pdbuddy.SinkConfig)
103
 
103
 
104
+    def test_output(self):
105
+        try:
106
+            self.pdbs.output(False)
107
+            self.assertFalse(self.pdbs.output())
108
+
109
+            self.pdbs.output(True)
110
+            self.assertTrue(self.pdbs.output())
111
+        except KeyError:
112
+            self.skipTest("Command output not supported")
113
+        except ValueError:
114
+            self.skipTest("Unknown value returned by PD Buddy Sink")
115
+
104
 
116
 
105
 class SinkConfigTestCase(unittest.TestCase):
117
 class SinkConfigTestCase(unittest.TestCase):
106
 
118
 

Loading…
Cancel
Save