示例#1
0
文件: test_ipc.py 项目: nideri/didjvu
 def test_fail(self):
     with assert_raises(OSError) as ecm:
         ipc.require(nonexistent_command)
     exc_message = "[Errno {errno.ENOENT}] command not found: {cmd!r}".format(
         errno=errno,
         cmd=nonexistent_command,
     )
     assert_equal(str(ecm.exception), exc_message)
示例#2
0
 def test_ok(self):
     ipc.require('cat')
示例#3
0
文件: test_ipc.py 项目: nideri/didjvu
 def test_ok(self):
     ipc.require('true', 'false')
示例#4
0
 def test_ok(self):
     ipc.require('cat')