2 # Copyright (C) 2013 Red Hat, Inc.
4 # This copyrighted material is made available to anyone wishing to use,
5 # modify, copy, or redistribute it subject to the terms and conditions of
6 # the GNU General Public License v.2, or (at your option) any later version.
7 # This program is distributed in the hope that it will be useful, but WITHOUT
8 # ANY WARRANTY expressed or implied, including the implied warranties of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10 # Public License for more details. You should have received a copy of the
11 # GNU General Public License along with this program; if not, write to the
12 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13 # 02110-1301, USA. Any Red Hat trademarks that are incorporated in the
14 # source code or documentation are not subject to the GNU General Public
15 # License and may only be used or replicated with the express permission of
18 # Red Hat Author(s): Vratislav Podzimek <vpodzime@redhat.com>
22 from tests
.baseclass
import *
24 from pykickstart
.errors
import *
25 from pykickstart
.commands
.eula
import *
27 class F20_TestCase(CommandTest
):
32 self
.assert_parse("eula --agreed", "eula --agreed\n")
33 self
.assert_parse("eula --agree", "eula --agreed\n")
34 self
.assert_parse("eula --accepted", "eula --agreed\n")
35 self
.assert_parse("eula --accept", "eula --agreed\n")
38 self
.assert_parse_error("eula", KickstartValueError
)
39 self
.assert_parse_error("eula arg1", KickstartValueError
)
41 if __name__
== "__main__":