瀏覽代碼

Added test method for Sink.output

Clara Hobbs 6 年之前
父節點
當前提交
342d66ebb5
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. 12
    0
      test_pdbuddy/__init__.py

+ 12
- 0
test_pdbuddy/__init__.py 查看文件

@@ -101,6 +101,18 @@ class SinkTestCase(unittest.TestCase):
101 101
             # essentially test_get_cfg_index.
102 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 117
 class SinkConfigTestCase(unittest.TestCase):
106 118
 

Loading…
取消
儲存