From a202f3ce997d522a4d5ee257b0501872034ec75d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 18 Jun 2019 13:14:32 +0200 Subject: [PATCH] test update use the 'newboth' command as well Signed-off-by: Wolfgang Bumiller --- proxmox-api/tests/cli.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/proxmox-api/tests/cli.rs b/proxmox-api/tests/cli.rs index fd0eb8f3..65b1d7c2 100644 --- a/proxmox-api/tests/cli.rs +++ b/proxmox-api/tests/cli.rs @@ -52,9 +52,17 @@ fn simple() { Ok("FOO2:BAR:OMG"), ); - check_cli(&cli, &["newfoo", "foo", "--bar=b", "--maybe"], Ok("foo:b:[true]")); - check_cli(&cli, &["newfoo", "foo", "--bar=b", "--maybe=false"], Ok("foo:b:[false]")); - check_cli(&cli, &["newfoo", "foo", "--bar=b", "--maybe", "false"], Ok("foo:b:[false]")); + check_cli(&cli, &["newboth", "a", "b", "--maybe"], Ok("a:b:[true]")); + check_cli( + &cli, + &["newboth", "a", "b", "--maybe=false"], + Ok("a:b:[false]"), + ); + check_cli( + &cli, + &["newboth", "a", "b", "--maybe", "false"], + Ok("a:b:[false]"), + ); } fn check_cli(cli: &cli::App, args: &[&str], expect: Result<&str, &str>) {