[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Fwd: [PATCH] Added iscsiname.py test case



> +class FC6_TestCase(CommandTest):
> +    def runTest(self):
> +        #pass
> +        self.assert_parse("iscsiname foo", "iscsiname foo\n")
> +
> +        #fail
> +        self.assert_parse_error("iscsiname", KickstartValueError)
> +        self.assert_parse_error("iscsiname foo bar", KickstartValueError)
> +
> +if __name__ == "__main__":
> +    unittest.main()

I added another assert_parse_error for "iscsiname --whatever", just to
make sure that works as expected too.  Otherwise, applied.  Thanks.

- Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]