'Assert writes are not possible to the given filesystem path.
:param FilePath path: Directory which ought to be read-only.'

def assertReadOnly(self, path):

    exc = self.assertRaises(OSError, path.child('text').setContent, 'hello')
    self.assertEqual(exc.args[0], errno.EROFS)
