comparison tests/test_util.py @ 285:913fd8aa221c

Rename parentui to src (after mercurial rev 9b8ac5fb7760) Just pass in src to real_ui as a positional argument to avoid the problem in the future.
author Martijn Pieters <mj@zopatista.com>
date Mon, 27 Apr 2009 09:39:39 -0500
parents 60acc38eac96
children dc2bb6faf904
comparison
equal deleted inserted replaced
284:f8f9a2993705 285:913fd8aa221c
71 71
72 72
73 class MockUI(object): 73 class MockUI(object):
74 real_ui = ui.ui 74 real_ui = ui.ui
75 _isatty = False 75 _isatty = False
76 def __init__(self, parentui=None): 76 def __init__(self, src=None):
77 self.stream = StringIO.StringIO() 77 self.stream = StringIO.StringIO()
78 self.inner_ui = self.real_ui(parentui=parentui) 78 self.inner_ui = self.real_ui(src)
79 79
80 def status(self, *args): 80 def status(self, *args):
81 self.stream.write(''.join(args)) 81 self.stream.write(''.join(args))
82 82
83 def warn(self, *args): 83 def warn(self, *args):