diff test/mocknull.py @ 2686:79fd8537ae3b

.gettext() facility is vital for many roundup objects. lots of tests failed because MockNull objects returned inappropriate value from .gettext().
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 26 Sep 2004 11:54:46 +0000
parents 24d3b25a9157
children 3757449e00c4
line wrap: on
line diff
--- a/test/mocknull.py	Sun Sep 26 11:30:56 2004 +0000
+++ b/test/mocknull.py	Sun Sep 26 11:54:46 2004 +0000
@@ -19,3 +19,5 @@
     def __nonzero__(self): return 0
     def __str__(self): return ''
     def __repr__(self): return '<MockNull 0x%x>'%id(self)
+    def gettext(self, str): return str
+    _ = gettext

Roundup Issue Tracker: http://roundup-tracker.org/