'If given a resumeOffset to resume writing to a file that does not
exist, L{DccFileReceive} will raise L{OSError}.'

def test_resumeWhenFileDoesNotExist(self):

    fp = FilePath(self.mktemp())
    error = self.assertRaises(OSError, self.makeConnectedDccFileReceive, fp.path, resumeOffset=1)
    self.assertEqual(errno.ENOENT, error.errno)
