changeset 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 552deb1351ce
children 982c46e7d167
files tests/test_util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -86,6 +86,9 @@ class MockUI(object):
     def write(self, *args):
         self.stream.write(*args)
 
+    def copy(self):
+        return self.__class__(self.inner_ui)
+
     def __getattr__(self, attr):
         return getattr(self.inner_ui, attr)