'Getting permissions for a file returns a L{Permissions} object for
POSIX platforms (which supports separate user, group, and other
permissions bits.'

def test_getPermissions_POSIX(self):

    for mode in (511, 448):
        self.path.child('sub1').chmod(mode)
        self.assertEqual(self.path.child('sub1').getPermissions(), filepath.Permissions(mode))
    self.path.child('sub1').chmod(500)
    self.assertEqual(self.path.child('sub1').getPermissions().shorthand(), 'rwxrw-r--')
