Beispiel #1
0
 def test_getfacl__recursive_w_multiple_args(self):
     linux_acl.getfacl(*self.files, recursive=True)
     self.cmdrun.assert_called_once_with('getfacl --absolute-names -R ' +
                                         ' '.join(self.quoted_files),
                                         python_shell=False)
Beispiel #2
0
 def test_getfacl_w_multiple_args(self):
     linux_acl.getfacl(*self.files)
     self.cmdrun.assert_called_once_with('getfacl --absolute-names ' + ' '.join(self.files), python_shell=False)
Beispiel #3
0
 def test_getfacl_w_single_arg(self):
     linux_acl.getfacl(self.file)
     self.cmdrun.assert_called_once_with('getfacl --absolute-names ' +
                                         self.quoted_file,
                                         python_shell=False)
Beispiel #4
0
 def test_getfacl__recursive_w_multiple_args(self):
     linux_acl.getfacl(*self.files, recursive=True)
     self.cmdrun.assert_called_once_with('getfacl -p -R ' +
                                         ' '.join(self.files))
Beispiel #5
0
 def test_getfacl_w_multiple_args(self):
     linux_acl.getfacl(*self.files)
     self.cmdrun.assert_called_once_with('getfacl -p ' +
                                         ' '.join(self.files))
Beispiel #6
0
 def test_getfacl_w_single_arg(self):
     linux_acl.getfacl(self.file)
     self.cmdrun.assert_called_once_with('getfacl -p ' + self.file)
Beispiel #7
0
 def test_getfacl__recursive_w_multiple_args(self):
     linux_acl.getfacl(*self.files, recursive=True)
     self.cmdrun.assert_called_once_with('getfacl --absolute-names -R ' + ' '.join(self.files), python_shell=False)
Beispiel #8
0
 def test_getfacl_w_single_arg(self):
     linux_acl.getfacl(self.file)
     self.cmdrun.assert_called_once_with('getfacl --absolute-names ' + self.file, python_shell=False)