コード例 #1
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_none(self):
     with py.test.raises(command.CommandException):
         command.which(None)
コード例 #2
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_relative_false(self):
     command.which('false')
コード例 #3
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_not_x(self):
     with py.test.raises(command.CommandException):
         command.which('/etc/hosts')
コード例 #4
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_full_foo(self):
     with py.test.raises(command.CommandException):
         command.which('/bin/foo')
コード例 #5
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_bin_sleep2(self):
     assert command.which('sleep') == '/bin/sleep'
コード例 #6
0
ファイル: test_command.py プロジェクト: helgi/python-command
 def test_which_bin_sleep(self):
     command.which('/bin/sleep')