Fwd: [PATCH] Added iscsiname.py test case

Chris Lumens clumens at redhat.com
Mon Feb 9 18:08:32 UTC 2009


> +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




More information about the Kickstart-list mailing list