Beispiel #1
0
 def test_delfacl__group_w_multiple_args(self):
     linux_acl.delfacl(*(self.group_acl[:-1] + self.files))
     self.cmdrun.assert_called_once_with(
         "setfacl -x " + " ".join([self.group_acl_cmd.rpartition(":")[0]] +
                                  self.quoted_files),
         python_shell=False,
     )
Beispiel #2
0
 def test_delfacl__default_user_w_multiple_args(self):
     linux_acl.delfacl(*(self.default_user_acl[:-1] + self.files))
     self.cmdrun.assert_called_once_with(
         'setfacl -x ' +
         ' '.join([self.default_user_acl_cmd.rpartition(':')[0]] +
                  self.quoted_files),
         python_shell=False)
Beispiel #3
0
 def test_delfacl__g_w_single_arg(self):
     linux_acl.delfacl(*(self.g_acl[:-1] + [self.file]))
     self.cmdrun.assert_called_once_with(
         "setfacl -x " + " ".join(
             [self.group_acl_cmd.rpartition(":")[0], self.quoted_file]),
         python_shell=False,
     )
Beispiel #4
0
 def test_delfacl__recursive_w_multiple_args(self):
     linux_acl.delfacl(*(self.default_user_acl[:-1] + self.files),
                       recursive=True)
     self.cmdrun.assert_called_once_with(
         "setfacl -R -x " +
         " ".join([self.default_user_acl_cmd.rpartition(":")[0]] +
                  self.quoted_files),
         python_shell=False,
     )
Beispiel #5
0
 def test_delfacl__d_u_w_single_arg(self):
     linux_acl.delfacl(*(self.d_u_acl[:-1] + [self.file]))
     self.cmdrun.assert_called_once_with('setfacl -x ' + ' '.join(
         [self.default_user_acl_cmd.rpartition(':')[0], self.quoted_file]),
                                         python_shell=False)
Beispiel #6
0
 def test_delfacl__recursive_w_multiple_args(self):
     linux_acl.delfacl(*(self.default_user_acl[:-1] + self.files),
                       recursive=True)
     self.cmdrun.assert_called_once_with('setfacl -x -R ' + ' '.join(
         [self.default_user_acl_cmd.rpartition(':')[0]] + self.files))
Beispiel #7
0
 def test_delfacl__group_w_multiple_args(self):
     linux_acl.delfacl(*(self.group_acl[:-1] + self.files))
     self.cmdrun.assert_called_once_with(
         'setfacl -x ' +
         ' '.join([self.group_acl_cmd.rpartition(':')[0]] + self.files))
Beispiel #8
0
 def test_delfacl__group_w_single_arg(self):
     linux_acl.delfacl(*(self.group_acl[:-1] + [self.file]))
     self.cmdrun.assert_called_once_with(
         'setfacl -x ' +
         ' '.join([self.group_acl_cmd.rpartition(':')[0], self.file]))
Beispiel #9
0
 def test_delfacl__recursive_w_multiple_args(self):
     linux_acl.delfacl(*(self.default_user_acl[:-1] + self.files), recursive=True)
     self.cmdrun.assert_called_once_with('setfacl -x -R ' + ' '.join([self.default_user_acl_cmd.rpartition(':')[0]] + self.files), python_shell=False)
Beispiel #10
0
 def test_delfacl__default_user_w_single_arg(self):
     linux_acl.delfacl(*(self.default_user_acl[:-1] + [self.file]))
     self.cmdrun.assert_called_once_with('setfacl -x ' + ' '.join([self.default_user_acl_cmd.rpartition(':')[0], self.file]), python_shell=False)
Beispiel #11
0
 def test_delfacl__group_w_multiple_args(self):
     linux_acl.delfacl(*(self.group_acl[:-1] + self.files))
     self.cmdrun.assert_called_once_with('setfacl -x ' + ' '.join([self.group_acl_cmd.rpartition(':')[0]] + self.files), python_shell=False)