self._connection.request("GET", path)
response = self._connection.getresponse()
self.assertEqual(response.status, 200)
return json.load(response)
def testBasicStartup(self):
Start the server up and then shut it down immediately.
pass
After Change
self._connection.request("GET", path)
response = self._connection.getresponse()
self.assertEqual(response.status, 200)
return json.loads(response.read().decode("utf-8"))
def testBasicStartup(self):
Start the server up and then shut it down immediately.
pass