Lines Matching refs:file
25 # Self-signed cert file for 'localhost'
27 # Self-signed cert file for 'fakehostname'
29 # Self-signed cert file for self-signed.pythontest.net
73 # keep the file around so we can check how much was read from it
74 self.file = self.fileclass(self.text)
75 self.file.close = self.file_close #nerf close ()
76 return self.file
106 more from the underlying file than it should.
1264 # we should have reached the end of the file
1265 self.assertEqual(sock.file.read(), b"") #we read to the end
1276 # the file should now have our extradata ready to be read
1277 self.assertEqual(sock.file.read(), extradata.encode("ascii")) #we read to the end
1288 # the file should now have our extradata ready to be read
1289 self.assertEqual(sock.file.read(), extradata) #we read to the end
1299 # the file should now have our extradata ready to be read
1300 self.assertEqual(sock.file.read(), extradata) #we read to the end
1310 # the file should now have our extradata ready to be read
1311 self.assertEqual(sock.file.read(), extradata) #we read to the end
1322 # the file should now have our extradata ready to be read
1323 self.assertEqual(sock.file.read(), extradata) #we read to the end
1334 # the file should now have our extradata ready to be read
1335 self.assertEqual(sock.file.read(), extradata) #we read to the end