tests/test-ui-config
changeset 3346 1700a103458e
parent 3073 24c1db20990c
child 4069 3fef134832d8
--- a/tests/test-ui-config	Tue Oct 10 18:43:20 2006 -0300
+++ b/tests/test-ui-config	Tue Oct 10 18:43:20 2006 -0300
@@ -1,9 +1,9 @@
 #!/usr/bin/env python
 
-from mercurial import ui, util
+from mercurial import ui, util, commands
 
 testui = ui.ui()
-testui.updateopts(config=[
+parsed = commands.parseconfig([
     'values.string=string value',
     'values.bool1=true',
     'values.bool2=false',
@@ -17,6 +17,7 @@
     'interpolation.value4=%(bad)1',
     'interpolation.value5=%bad2',
 ])
+testui.updateopts(config=parsed)
 
 print repr(testui.configitems('values'))
 print repr(testui.configitems('lists'))