MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_httpservers.py:1504–1511  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1502 tls_password_file = 'ssl_key_password'
1503
1504 def setUp(self):
1505 super().setUp()
1506 server_dir_context = os_helper.temp_cwd()
1507 server_dir = self.enterContext(server_dir_context)
1508 with open(self.served_filename, 'wb') as f:
1509 f.write(self.served_data)
1510 with open(self.tls_password_file, 'wb') as f:
1511 f.write(self.tls_password)
1512
1513 def fetch_file(self, path, context=None):
1514 req = urllib.request.Request(path, method='GET')

Callers

nothing calls this directly

Calls 5

superClass · 0.85
enterContextMethod · 0.80
openFunction · 0.50
setUpMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected