def test_two_starts_cleans_up_properly(self): port = TestWebKitPort() port._server_process_constructor = MockServerProcess driver = Driver(port, 0, pixel_tests=True) driver.start(True, []) last_tmpdir = port._filesystem.last_tmpdir driver._start(True, []) self.assertFalse(port._filesystem.isdir(last_tmpdir))
def test_start_actually_starts(self): port = TestWebKitPort() port._server_process_constructor = MockServerProcess driver = Driver(port, 0, pixel_tests=True) driver.start(True, []) self.assertTrue(driver._server_process.started)