mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
remove duplicate code
This commit is contained in:
parent
3b8a9874f4
commit
ff593e30b2
1 changed files with 0 additions and 11 deletions
|
@ -45,17 +45,6 @@ class LinuxAclTestCase(TestCase):
|
|||
linux_acl.getfacl(*self.files)
|
||||
self.cmdrun.assert_called_once_with('getfacl -p ' + ' '.join(self.files))
|
||||
|
||||
def test_getfacl_wo_args(self):
|
||||
self.assertRaises(CommandExecutionError, linux_acl.getfacl)
|
||||
|
||||
def test_getfacl_w_single_arg(self):
|
||||
linux_acl.getfacl(self.file)
|
||||
self.cmdrun.assert_called_once_with('getfacl -p ' + self.file)
|
||||
|
||||
def test_getfacl_w_multiple_args(self):
|
||||
linux_acl.getfacl(*self.files)
|
||||
self.cmdrun.assert_called_once_with('getfacl -p ' + ' '.join(self.files))
|
||||
|
||||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue