Exemplo n.º 1
0
 def test_check_build(self):
     host = MockSystemHost()
     port = self.make_port(host=host, options=optparse.Values({'child_processes': 1}))
     # Checking the devices is not tested in this unit test.
     port._check_devices = lambda _: None
     host.filesystem.exists = lambda p: True
     port.check_build(needs_http=True, printer=port_testcase.FakePrinter())
Exemplo n.º 2
0
 def test_check_build(self):
     host = MockSystemHost()
     host.filesystem.exists = lambda p: True
     port = self.make_port(host=host,
                           options=MockOptions(child_processes=1))
     port.check_build(needs_http=True, printer=port_testcase.FakePrinter())