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