'When resuming from an offset somewhere in the middle of the file,
for example, if there are 50 bytes in a file, and L{DccFileReceive}
is given a resumeOffset of 25, and after that 15 more bytes are
written to the file, then the resultant file should have just 40
bytes of data.'

def test_resumeFromResumeOffsetInTheMiddleOfAlreadyWrittenData(self):

    fp = FilePath(self.mktemp())
    fp.setContent('Twisted    is    amazing!')
    protocol = self.makeConnectedDccFileReceive(fp.path, resumeOffset=11)
    self.allDataReceivedForProtocol(protocol, 'cool!')
    self.assertEqual(fp.getContent(), 'Twisted    is    cool!')
