diff --git a/tests/__init__.py b/tests/__init__.py index f408138..231b8a0 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -10,7 +10,6 @@ opts = { 'streamname': 'testing', 'port': 6990, 'bps': 0, - 'channel': 3 } vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all} diff --git a/tests/tests_higher.py b/tests/tests_higher.py index 3085638..6d325f4 100644 --- a/tests/tests_higher.py +++ b/tests/tests_higher.py @@ -29,6 +29,17 @@ class TestSetAndGetBoolHigher(unittest.TestCase): self.assertTrue(isinstance(retval, bool)) assert_equal(retval, self.val) + """ bus mode tests, physical and virtual """ + @parameterized.expand([ + (0, 'amix'), (0, 'tvmix'), (2, 'composite'), (2, 'upmix41'), + (7, 'upmix21'), (7, 'rearonly'), (6, 'lfeonly'), (6, 'repeat') + ]) + def test_it_sets_and_gets_bus_mode_bool_params(self, index, param): + setattr(tests.bus[index].mode, param, self.val) + retval = getattr(tests.bus[index].mode, param) + self.assertTrue(isinstance(retval, bool)) + assert_equal(retval, self.val) + #@nottest @parameterized_class([