예제 #1
0
 def test_validate_select_valid(self):   
     try:
         track = GCblackmagic({'path' : '/tmp',
                               'input' : 'sdi'})
     except SystemError:
         pass
     self.assertEqual(track.options['input'], 'sdi')
예제 #2
0
 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')
예제 #3
0
 def test_blackmagic_no_audio(self):
     track = GCblackmagic({"audio-input": "none", "path": "/"})
     self.assertEqual(track.has_audio, False)
예제 #4
0
 def test_validate_select_valid(self):
     track = GCblackmagic({'device': 'blackmagic', 'path' : '/tmp', 'input' : 'sdi'})
     self.assertEqual(track.options['input'], 'sdi')