(self)
| 6864 | # regular file |
| 6865 | |
| 6866 | def _testRegularFile(self): |
| 6867 | address = self.serv.getsockname() |
| 6868 | file = open(os_helper.TESTFN, 'rb') |
| 6869 | with socket.create_connection(address) as sock, file as file: |
| 6870 | meth = self.meth_from_sock(sock) |
| 6871 | sent = meth(file) |
| 6872 | self.assertEqual(sent, self.FILESIZE) |
| 6873 | self.assertEqual(file.tell(), self.FILESIZE) |
| 6874 | |
| 6875 | def testRegularFile(self): |
| 6876 | conn = self.accept_conn() |
nothing calls this directly
no test coverage detected