--- tests/commands/clearpart.py | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/commands/clearpart.py b/tests/commands/clearpart.py index 03a4d16..f4e6076 100644 --- a/tests/commands/clearpart.py +++ b/tests/commands/clearpart.py @@ -12,27 +12,27 @@ class FC3_TestCase(CommandTest): # pass self.assert_parse("clearpart") self.assert_parse("clearpart --all", "clearpart --all \n") - # Passing multiple competing type options should accept only the last one + # Passing multiple competing type options should accept only the last one self.assert_parse("clearpart --linux --none --all", "clearpart --all \n") - # Setting --initlabel or --drives without a type option should 'fail' - self.assert_parse("clearpart --initlabel", "") - self.assert_parse("clearpart --drives sda", "") + # Setting --initlabel or --drives without a type option should 'fail' + self.assert_parse("clearpart --initlabel", "") + self.assert_parse("clearpart --drives sda", "") - self.assert_parse("clearpart --all --initlabel", "clearpart --all --initlabel \n") - self.assert_parse("clearpart --all --drives sda", "clearpart --all --drives=sda\n") - self.assert_parse("clearpart --all --drives sda,sdb", "clearpart --all --drives=sda,sdb\n") - self.assert_parse("clearpart --all --drives=sda", "clearpart --all --drives=sda\n") - self.assert_parse("clearpart --all --drives=sda,sdb", "clearpart --all --drives=sda,sdb\n") - # Big Everything Test - self.assert_parse("clearpart --drives=sda,sdb --all --linux --initlabel", "clearpart --linux --initlabel --drives=sda,sdb\n") + self.assert_parse("clearpart --all --initlabel", "clearpart --all --initlabel \n") + self.assert_parse("clearpart --all --drives sda", "clearpart --all --drives=sda\n") + self.assert_parse("clearpart --all --drives sda,sdb", "clearpart --all --drives=sda,sdb\n") + self.assert_parse("clearpart --all --drives=sda", "clearpart --all --drives=sda\n") + self.assert_parse("clearpart --all --drives=sda,sdb", "clearpart --all --drives=sda,sdb\n") + # Big Everything Test + self.assert_parse("clearpart --drives=sda,sdb --all --linux --initlabel", "clearpart --linux --initlabel --drives=sda,sdb\n") # fail - # initlabel should not take a value + # initlabel should not take a value self.assert_parse_error("clearpart --initlabel=foo") - # drives must take a value - self.assert_parse_error("clearpart --all --drives") - # nonsensical parameter test - self.assert_parse_error("clearpart --cheese") + # drives must take a value + self.assert_parse_error("clearpart --all --drives") + # nonsensical parameter test + self.assert_parse_error("clearpart --cheese") if __name__ == "__main__": unittest.main() -- 1.6.0.6 _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list