changeset 5299:10addfab4c0b

test_template: modern style classes
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 20 Nov 2009 10:31:55 +0100
parents d57b74bc4cbd
children af42eec12f38
files MoinMoin/_tests/_test_template.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/_test_template.py	Fri Nov 20 09:49:05 2009 +0100
+++ b/MoinMoin/_tests/_test_template.py	Fri Nov 20 10:31:55 2009 +0100
@@ -6,6 +6,7 @@
 
     @copyright: 2003-2004 by Juergen Hermann <jh@web.de>,
                 2007 MoinMoin:AlexanderSchremmer
+                2009 MoinMoin:ReimarBauer
     @license: GNU GPL, see COPYING for details.
 """
 
@@ -13,7 +14,7 @@
 from MoinMoin import module_tested
 
 
-class TestSimpleStuff:
+class TestSimpleStuff(object):
     """ The simplest MoinMoin test class
 
     Class name must start with 'Test' to be included in
@@ -34,7 +35,7 @@
         assert result == expected
 
 
-class TestComplexStuff:
+class TestComplexStuff(object):
     """ Describe these tests here...
 
     Some tests may have a list of tests related to this test case. You