(self)
| 6761 | # regular file |
| 6762 | |
| 6763 | def _testRegularFile(self): |
| 6764 | address = self.serv.getsockname() |
| 6765 | file = open(os_helper.TESTFN, 'rb') |
| 6766 | with socket.create_connection(address) as sock, file as file: |
| 6767 | meth = self.meth_from_sock(sock) |
| 6768 | sent = meth(file) |
| 6769 | self.assertEqual(sent, self.FILESIZE) |
| 6770 | self.assertEqual(file.tell(), self.FILESIZE) |
| 6771 | |
| 6772 | def testRegularFile(self): |
| 6773 | conn = self.accept_conn() |
nothing calls this directly
no test coverage detected