comparison tests/test_util.py @ 139:89a737852d33

utility_commands: Add tests for url and info. Fix a bad mock in the process.
author Augie Fackler <durin42@gmail.com>
date Thu, 11 Dec 2008 20:24:48 -0600
parents 40474f6c1f84
children 0c5f6420a8b5
comparison
equal deleted inserted replaced
138:40474f6c1f84 139:89a737852d33
73 def __init__(self, parentui=None): 73 def __init__(self, parentui=None):
74 self.stream = StringIO.StringIO() 74 self.stream = StringIO.StringIO()
75 self.inner_ui = self.real_ui(parentui=parentui) 75 self.inner_ui = self.real_ui(parentui=parentui)
76 76
77 def status(self, *args): 77 def status(self, *args):
78 self.stream.write(*args) 78 self.stream.write(''.join(args))
79 79
80 def warn(self, *args): 80 def warn(self, *args):
81 self.stream.write(*args) 81 self.stream.write(*args)
82 82
83 def write(self, *args): 83 def write(self, *args):