예제 #1
0
 def test_which_none(self):
     with py.test.raises(command.CommandException):
         command.which(None)
예제 #2
0
 def test_which_relative_false(self):
     command.which('false')
예제 #3
0
 def test_which_not_x(self):
     with py.test.raises(command.CommandException):
         command.which('/etc/hosts')
예제 #4
0
 def test_which_full_foo(self):
     with py.test.raises(command.CommandException):
         command.which('/bin/foo')
예제 #5
0
 def test_which_bin_sleep2(self):
     assert command.which('sleep') == '/bin/sleep'
예제 #6
0
 def test_which_bin_sleep(self):
     command.which('/bin/sleep')