def test_which_none(self): with py.test.raises(command.CommandException): command.which(None)
def test_which_relative_false(self): command.which('false')
def test_which_not_x(self): with py.test.raises(command.CommandException): command.which('/etc/hosts')
def test_which_full_foo(self): with py.test.raises(command.CommandException): command.which('/bin/foo')
def test_which_bin_sleep2(self): assert command.which('sleep') == '/bin/sleep'
def test_which_bin_sleep(self): command.which('/bin/sleep')