def METHOD_NAME(self):
    result = self.run_command(
        [
            "promote",
            "test-snap",
            "--from-channel",
            "edge",
            "--to-channel",
            "candidate",
            "--yes",
        ]
    )
    self.assertThat(result.exit_code, Equals(2))
    self.assertThat(
        result.output,
        Contains(
            "'edge' is not a valid set value for --from-channel when using --yes."
        ),
    )