add wem stream player
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
__author__ = 'dev'
|
||||
|
||||
import unittest
|
||||
import subprocess
|
||||
from config.commands import web_stream_commands as wcmd
|
||||
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
def test_something(self):
|
||||
self.assertEqual(True, False)
|
||||
class TestCommands(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.__wspc =wcmd["web_stream_player_command"]
|
||||
|
||||
def test_web_stream_commands(self):
|
||||
self.assertEqual(0, subprocess.call(self.__wspc))
|
||||
|
||||
def test_web_stream_commands_error_wrong_commands(self):
|
||||
self.assertRaises(FileNotFoundError, subprocess.call,self.__wspc + "fail")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user