Exemplo n.º 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,
     )
Exemplo n.º 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)
Exemplo n.º 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,
     )
Exemplo n.º 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,
     )
Exemplo n.º 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)
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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]))
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)