summaryrefslogtreecommitdiff
path: root/tests/test_path_to_node_mapping.py
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2011-10-09 11:23:49 +0200
committeretobi <git@e-tobi.net>2011-10-09 19:21:26 +0200
commit0b19d02c1bddea73bec8057a6a2bf52199fedc45 (patch)
tree079c51dccaf939d27797bca6d1b6e7030187e0d0 /tests/test_path_to_node_mapping.py
parenta196a16d13930033b2dffc9920149e339ddb3d07 (diff)
downloadvdrnfofs-0b19d02c1bddea73bec8057a6a2bf52199fedc45.tar.gz
vdrnfofs-0b19d02c1bddea73bec8057a6a2bf52199fedc45.tar.bz2
Another micro optimization: deferred and cached calculation of attributes within node instances
Diffstat (limited to 'tests/test_path_to_node_mapping.py')
-rw-r--r--tests/test_path_to_node_mapping.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_path_to_node_mapping.py b/tests/test_path_to_node_mapping.py
index 51e7852..917c462 100644
--- a/tests/test_path_to_node_mapping.py
+++ b/tests/test_path_to_node_mapping.py
@@ -42,15 +42,15 @@ class TestPathToNodeMapping(unittest.TestCase):
def test_root(self):
node = get_node(self.video, '/')
- self.assertEqual('', node.file_system_name)
+ self.assertEqual('', node.file_system_name())
self.assertEqual(self.video + '/', node.path)
def test_subdir(self):
node = get_node(self.video, '/folder')
- self.assertEqual('folder', node.file_system_name)
+ self.assertEqual('folder', node.file_system_name())
self.assertEqual(self.video + '/folder', node.path)
def test_mpg(self):
node = get_node(self.video, '/sample_2008-03-28.20.13.99.99.rec.mpg')
- self.assertEqual('sample_2008-03-28.20.13.99.99.rec.mpg', node.file_system_name)
+ self.assertEqual('sample_2008-03-28.20.13.99.99.rec.mpg', node.file_system_name())
self.assertEqual(self.video + '/sample/2008-03-28.20.13.99.99.rec', node.path)