Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_resumeFromResumeOffset(self):
- """
- If given a resumeOffset argument, L{DccFileReceive} will attempt to
- resume from that number of bytes if the file exists.
- """
- fp = FilePath(self.mktemp())
- fp.setContent("Twisted is awesome!")
- protocol = self.makeConnectedDccFileReceive(fp.path, resumeOffset=11)
- self.allDataReceivedForProtocol(protocol, "amazing!")
- self.assertEqual("Twisted is amazing!", fp.getContent())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement