add wem stream player

This commit is contained in:
stubbfel
2014-10-08 00:27:43 +02:00
parent 53741bb363
commit 3fdbef4245
6 changed files with 60 additions and 9 deletions

View File

@@ -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__':