Ejemplo n.º 1
0
 def test_two_starts_cleans_up_properly(self):
     port = self.make_port()
     port.server_process_constructor = MockServerProcess
     driver = Driver(port, 0, pixel_tests=True)
     driver.start(True, [], None)
     last_tmpdir = port.host.filesystem.last_tmpdir
     driver._start(True, [])
     self.assertFalse(port.host.filesystem.isdir(last_tmpdir))
Ejemplo n.º 2
0
 def test_stop_cleans_up_properly(self):
     port = self.make_port()
     port.server_process_constructor = MockServerProcess
     driver = Driver(port, 0)
     driver.start([], None)
     last_tmpdir = port.host.filesystem.last_tmpdir
     self.assertIsNotNone(last_tmpdir)
     driver.stop()
     self.assertFalse(port.host.filesystem.isdir(last_tmpdir))
Ejemplo n.º 3
0
 def test_start_actually_starts(self):
     port = self.make_port()
     port.server_process_constructor = MockServerProcess
     driver = Driver(port, 0, pixel_tests=True)
     driver.start(True, [], None)
     self.assertTrue(driver._server_process.started)