예제 #1
0
    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", ), {}),
        ])
예제 #2
0
    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", ), {}),
        ])