'L{FilePath.chmod} modifies the permissions of
the passed file as expected (using C{os.stat} to check). We use some
basic modes that should work everywhere (even on Windows).'

def test_chmod(self):

    for mode in (365, 511):
        self.path.child('sub1').chmod(mode)
        self.assertEqual(stat.S_IMODE(os.stat(self.path.child('sub1').path).st_mode), mode)
