コード例 #1
0
ファイル: vfs_local_tests.py プロジェクト: secmff/obnam
    def test_lgetxattr(self):
        '''lgetxattr() gets the value of an attribute set on the file.'''

        if self.user_xattr_are_supported():
            _obnam.lsetxattr(self.filename, "user.hello", "world")
            self.assertEqual(_obnam.lgetxattr(self.filename, "user.hello"),
                             "world")
コード例 #2
0
ファイル: vfs_local_tests.py プロジェクト: michel-slm/obnam
    def test_lgetxattr(self):
        '''lgetxattr() gets the value of an attribute set on the file.'''

        if self.user_xattr_are_supported():
            _obnam.lsetxattr(self.filename, "user.hello", "world")
            self.assertEqual(
                _obnam.lgetxattr(self.filename, "user.hello"),
                "world")
コード例 #3
0
ファイル: vfs_local_tests.py プロジェクト: bytearchive/obnam
 def test_lgetxattr(self):
     '''lgetxattr() gets the value of an attribute set on the file.'''
     _obnam.lsetxattr(self.filename, "user.hello", "world")
     self.assertEqual(_obnam.lgetxattr(self.filename, "user.hello"), "world")