コード例 #1
0
 def test_check_cmd_cat(self, which):
     s = StreamProcess(Streamlink())
     which.return_value = s.cmd = "test"
     self.assertEqual("test", s._check_cmd())
コード例 #2
0
 def test_check_cmd_cat(self, which, mock_cmd):
     s = StreamProcess(Streamlink())
     mock_cmd.return_value = "test"
     self.assertEqual("test", s._check_cmd())
コード例 #3
0
 def test_check_cmd_cat(self, which):
     s = StreamProcess(Streamlink())
     which.return_value = s.cmd = "test"
     self.assertEqual("test", s._check_cmd())