def test_bootstrap_minimal(self): self.version_cli.return_get_bootstrap_args = ["sub"] cli = CLI(self.exe, self.version_cli) spec = BootstrapSpec("spam", "lxd") cli.bootstrap(spec) self.assertEqual(self.calls, [ ("get_bootstrap_args", (spec, None, None, False, False, False), {}), ("run", ("sub", ), {}), ])
def test_bootstrap_full(self): self.version_cli.return_get_bootstrap_args = ["sub"] cli = CLI(self.exe, self.version_cli) spec = BootstrapSpec("spam", "lxd") cli.bootstrap(spec, "0", "bootstrap.yaml", True, True, True) self.assertEqual(self.calls, [ ("get_bootstrap_args", (spec, "0", "bootstrap.yaml", True, True, True), {}), ("run", ("sub", ), {}), ])