'Contents of the file referred to by a L{FilePath} can be written using
L{FilePath.setContent}.'

def test_write(self):

    pathString = self.mktemp()
    path = filepath.FilePath(pathString)
    path.setContent('hello,    world')
    with open(pathString, 'rb') as fObj:
        contents = fObj.read()
    self.assertEqual('hello,    world', contents)
