remove duplicate code

This commit is contained in:
Thomas S Hatch 2014-11-04 10:05:24 -07:00
parent 3b8a9874f4
commit ff593e30b2

View file

@ -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))