def test_cleanup(self):
     port_obj = TrivialMockPort()
     server_process = FakeServerProcess(port_obj=port_obj, name="test", cmd=["test"])
     server_process._start()
     server_process.stop()
     self.assertTrue(server_process.stdin.closed)
     self.assertTrue(server_process.stdout.closed)
     self.assertTrue(server_process.stderr.closed)
 def test_cleanup(self):
     port_obj = TrivialMockPort()
     server_process = FakeServerProcess(port_obj=port_obj, name="test", cmd=["test"])
     server_process._start()
     server_process.stop()
     self.assertTrue(server_process.stdin.closed)
     self.assertTrue(server_process.stdout.closed)
     self.assertTrue(server_process.stderr.closed)