diff options
author | etobi <git@e-tobi.net> | 2011-10-08 22:49:04 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2011-10-09 19:15:53 +0200 |
commit | f6284c8edbf219540c8c6082ec97e6bc53e9bbec (patch) | |
tree | 010400d76113eef6eb6f57678a8840127dad93d7 /tests/test_path_to_node_mapping.py | |
parent | dd6aed93350a3fb671fba9b4305d4c29bbe7123b (diff) | |
download | vdrnfofs-f6284c8edbf219540c8c6082ec97e6bc53e9bbec.tar.gz vdrnfofs-f6284c8edbf219540c8c6082ec97e6bc53e9bbec.tar.bz2 |
Refactored os.path.normapath() away, which is relative expensive and Fuse already normalizes the paths for us
Diffstat (limited to 'tests/test_path_to_node_mapping.py')
-rw-r--r-- | tests/test_path_to_node_mapping.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_path_to_node_mapping.py b/tests/test_path_to_node_mapping.py index 9e81828..51e7852 100644 --- a/tests/test_path_to_node_mapping.py +++ b/tests/test_path_to_node_mapping.py @@ -38,12 +38,12 @@ from vdrnfofs.vdrnfofs import * class TestPathToNodeMapping(unittest.TestCase): def setUp(self): - self.video = self.video_dir = os.path.abspath(os.path.dirname(__file__) + '/sample_video_dir') + self.video = os.path.abspath(os.path.dirname(__file__) + '/sample_video_dir') def test_root(self): node = get_node(self.video, '/') self.assertEqual('', node.file_system_name) - self.assertEqual(self.video, node.path) + self.assertEqual(self.video + '/', node.path) def test_subdir(self): node = get_node(self.video, '/folder') |