1
0
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:
William Ting 2014-01-01 22:00:24 -06:00
parent c4ec07784a
commit 6f5e4dd2d1

View File

@ -154,7 +154,7 @@ class FileSystemIntegrationTests(TestCase):
assert_true(os.path.exists(dst))
def HelperFunctionsUnitTests(TestCase):
class HelperFunctionsUnitTests(TestCase):
def test_get_needle(self):
assert_equal(
get_tab_entry_info('foo__', '__'),
@ -167,8 +167,13 @@ def HelperFunctionsUnitTests(TestCase):
def test_get_path(self):
assert_equal(
get_tab_entry_info('foo__3__/foo', '__'),
('foo', 3, '/foo'))
get_tab_entry_info('foo__3__/foo/bar', '__'),
('foo', 3, '/foo/bar'))
def test_get_none(self):
assert_equal(
get_tab_entry_info('gibberish content', '__'),
(None, None, None))
if __name__ == "__main__":