(self)
| 6899 | # empty file |
| 6900 | |
| 6901 | def _testEmptyFileSend(self): |
| 6902 | address = self.serv.getsockname() |
| 6903 | filename = os_helper.TESTFN + "2" |
| 6904 | with open(filename, 'wb'): |
| 6905 | self.addCleanup(os_helper.unlink, filename) |
| 6906 | file = open(filename, 'rb') |
| 6907 | with socket.create_connection(address) as sock, file as file: |
| 6908 | meth = self.meth_from_sock(sock) |
| 6909 | sent = meth(file) |
| 6910 | self.assertEqual(sent, 0) |
| 6911 | self.assertEqual(file.tell(), 0) |
| 6912 | |
| 6913 | def testEmptyFileSend(self): |
| 6914 | conn = self.accept_conn() |
nothing calls this directly
no test coverage detected