Пример #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')