mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2025-12-19 04:20:23 +01:00
Moved which function to another module
This commit is contained in:
12
tests/test_path.py
Normal file
12
tests/test_path.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from fs_uae_wrapper import path
|
||||
|
||||
|
||||
class TestPath(TestCase):
|
||||
|
||||
def test_which(self):
|
||||
self.assertEqual(path.which('sh'), 'sh')
|
||||
self.assertIsNone(path.which('blahblahexec'))
|
||||
self.assertEqual(path.which(['blahblahexec', 'pip', 'sh']),
|
||||
'pip')
|
||||
Reference in New Issue
Block a user