diff 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
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)