def test_validate_select_valid(self): try: track = GCblackmagic({'path' : '/tmp', 'input' : 'sdi'}) except SystemError: pass self.assertEqual(track.options['input'], 'sdi')
def test_validate_select_not_valid(self): try: track = GCblackmagic({'path': '/tmp', 'input': 'thing'}) except SystemError: return True # Force fail on test self.assertEqual(track.options['input'], 'fail')
def test_blackmagic_no_audio(self): track = GCblackmagic({"audio-input": "none", "path": "/"}) self.assertEqual(track.has_audio, False)
def test_validate_select_valid(self): track = GCblackmagic({'device': 'blackmagic', 'path' : '/tmp', 'input' : 'sdi'}) self.assertEqual(track.options['input'], 'sdi')