mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
* added a test for utils.findBinaryInPath
This commit is contained in:
parent
83c44eecab
commit
e2e277df0f
@ -126,3 +126,10 @@ class UtilsTest(unittest.TestCase):
|
||||
self.assertEqual(f('foobarbaz'), 'foorz')
|
||||
f = utils.perlReToReplacer('s/ba\\///g')
|
||||
self.assertEqual(f('fooba/rba/z'), 'foorz')
|
||||
|
||||
def testFindBinaryInPath(self):
|
||||
self.assertEqual(None, utils.findBinaryInPath('asdfhjklasdfhjkl'))
|
||||
self.assertEqual('/bin/sh', utils.findBinaryInPath('sh'))
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user