def test_module_parameters(self): args = dict( filename='foo.qkview', asm_request_log=False, max_file_size=1024, complete_information=True, exclude_core=True, force=False, exclude=['audit', 'secure'], dest='/tmp/foo.qkview' ) p = Parameters(params=args) assert p.filename == 'foo.qkview' assert p.asm_request_log is None assert p.max_file_size == '-s 1024' assert p.complete_information == '-c' assert p.exclude_core == '-C' assert p.force is False assert len(p.exclude_core) == 2 assert 'audit' in p.exclude assert 'secure' in p.exclude assert p.dest == '/tmp/foo.qkview'
def test_module_asm_parameter(self): args = dict( asm_request_log=True, ) p = Parameters(params=args) assert p.asm_request_log == '-o asm-request-log'