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