comparison tests/test_util.py @ 287:dc2bb6faf904

Implement the copy method on the mock ui to maintain it across tests. See mercurial revision d2899a856f9f.
author Martijn Pieters <mj@zopatista.com>
date Mon, 27 Apr 2009 22:39:48 +0200
parents 913fd8aa221c
children 33736e2e25f0
comparison
equal deleted inserted replaced
286:552deb1351ce 287:dc2bb6faf904
83 def warn(self, *args): 83 def warn(self, *args):
84 self.stream.write(*args) 84 self.stream.write(*args)
85 85
86 def write(self, *args): 86 def write(self, *args):
87 self.stream.write(*args) 87 self.stream.write(*args)
88
89 def copy(self):
90 return self.__class__(self.inner_ui)
88 91
89 def __getattr__(self, attr): 92 def __getattr__(self, attr):
90 return getattr(self.inner_ui, attr) 93 return getattr(self.inner_ui, attr)
91 94
92 95