2 from tests
.baseclass
import *
4 from pykickstart
import constants
5 from pykickstart
.errors
import KickstartParseError
6 from pykickstart
import version
8 class Packages_Seen_TestCase(ParserTest
):
16 self
.parser
.readKickstartFromString(self
.ks
)
17 self
.assertTrue(self
.handler
.packages
.seen
)
19 class Packages_Not_Seen_TestCase(ParserTest
):
25 self
.parser
.readKickstartFromString(self
.ks
)
26 self
.assertFalse(self
.handler
.packages
.seen
)
28 class Commands_Seen_TestCase(ParserTest
):
30 bootloader --location=none
31 part / --size=10000 --fstype=ext4
35 self
.parser
.readKickstartFromString(self
.ks
)
36 self
.assertFalse(self
.handler
.autopart
.seen
)
37 self
.assertTrue(self
.handler
.bootloader
.seen
)
38 self
.assertTrue(self
.handler
.partition
.seen
)
40 if __name__
== "__main__":