예제 #1
0
파일: common.py 프로젝트: tsolakidis/gluish
 def complete(self):
     return which(self.name) is not None
예제 #2
0
 def test_which(self):
     self.assertTrue(which('ls') is not None)
     self.assertTrue(which('ls').endswith('bin/ls'))
     self.assertTrue(which('veryunlikely1234') is None)
예제 #3
0
파일: common.py 프로젝트: tsolakidis/gluish
 def complete(self):
     return which(self.name) is not None