def test_not_run_bootstrap(self): self.exists.return_value = True build.bootstrap() self.assertFalse(self.call.called)
def test_run_boostrap(self): self.exists.return_value = False build.bootstrap() self.call.assert_called_with( ['python', 'bootstrap.py'])