tests/test-ui-config
changeset 4729 9881abfc0e44
parent 4549 0c61124ad877
child 5185 18a9fbb5cd78
equal deleted inserted replaced
4728:7bb5bcb089e3 4729:9881abfc0e44
    32 print repr(testui.config('values', 'bool2'))
    32 print repr(testui.config('values', 'bool2'))
    33 print repr(testui.config('values', 'unknown'))
    33 print repr(testui.config('values', 'unknown'))
    34 print "---"
    34 print "---"
    35 try:
    35 try:
    36     print repr(testui.configbool('values', 'string'))
    36     print repr(testui.configbool('values', 'string'))
    37 except ValueError, why:
    37 except util.Abort, inst:
    38     print why
    38     print inst
    39 print repr(testui.configbool('values', 'bool1'))
    39 print repr(testui.configbool('values', 'bool1'))
    40 print repr(testui.configbool('values', 'bool2'))
    40 print repr(testui.configbool('values', 'bool2'))
    41 print repr(testui.configbool('values', 'bool2', True))
    41 print repr(testui.configbool('values', 'bool2', True))
    42 print repr(testui.configbool('values', 'unknown'))
    42 print repr(testui.configbool('values', 'unknown'))
    43 print repr(testui.configbool('values', 'unknown', True))
    43 print repr(testui.configbool('values', 'unknown', True))