mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
fix helper function unit tests
This commit is contained in:
parent
c4ec07784a
commit
6f5e4dd2d1
@ -154,7 +154,7 @@ class FileSystemIntegrationTests(TestCase):
|
|||||||
assert_true(os.path.exists(dst))
|
assert_true(os.path.exists(dst))
|
||||||
|
|
||||||
|
|
||||||
def HelperFunctionsUnitTests(TestCase):
|
class HelperFunctionsUnitTests(TestCase):
|
||||||
def test_get_needle(self):
|
def test_get_needle(self):
|
||||||
assert_equal(
|
assert_equal(
|
||||||
get_tab_entry_info('foo__', '__'),
|
get_tab_entry_info('foo__', '__'),
|
||||||
@ -167,8 +167,13 @@ def HelperFunctionsUnitTests(TestCase):
|
|||||||
|
|
||||||
def test_get_path(self):
|
def test_get_path(self):
|
||||||
assert_equal(
|
assert_equal(
|
||||||
get_tab_entry_info('foo__3__/foo', '__'),
|
get_tab_entry_info('foo__3__/foo/bar', '__'),
|
||||||
('foo', 3, '/foo'))
|
('foo', 3, '/foo/bar'))
|
||||||
|
|
||||||
|
def test_get_none(self):
|
||||||
|
assert_equal(
|
||||||
|
get_tab_entry_info('gibberish content', '__'),
|
||||||
|
(None, None, None))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user