'Getting permissions for a file returns a L{Permissions} object in
Windows.  Windows requires a different test, because user permissions
= group permissions = other permissions.  Also, chmod may not be able
to set the execute bit, so we are skipping tests that set the execute
bit.'

def test_getPermissions_Windows(self):

    self.addCleanup(self.path.child('sub1').chmod, 511)
    for mode in (511, 365):
        self.path.child('sub1').chmod(mode)
        self.assertEqual(self.path.child('sub1').getPermissions(), filepath.Permissions(mode))
    self.path.child('sub1').chmod(329)
    self.assertEqual(self.path.child('sub1').getPermissions().shorthand(), 'r-xr-xr-x')
