def METHOD_NAME(self):
    self.file_cacher.put_file_content.side_effect = OSError("sth wrong")
    with self.assertRaises(UnacceptablePrintJob):
        self.call({"file": [MockHTTPFile("myfile.pdf", FILE_CONTENT)]})