'If files exist in the filesystem, permissions are not reset when the
filesystem is remounted.'

def test_world_permissions_not_reset_if_other_files_exist(self):

    mountpoint = mountroot_for_test(self).child('mount-test')
    scenario = self._run_success_test(mountpoint)
    mountpoint.child('file').setContent('stuff')
    check_call(['umount', mountpoint.path])
    mountpoint.chmod(S_IRWXU)
    mountpoint.restat()
    self.successResultOf(run_state_change(scenario.state_change(), scenario.deployer, InMemoryStatePersister()))
    self.assertEqual(mountpoint.getPermissions().shorthand(), 'rwx------')
