changeset 73:91e381f00248

shorten test cases names, TestCase suffix is not needed imported from: moin--main--1.5--patch-75
author Nir Soffer <nirs@freeshell.org>
date Mon, 03 Oct 2005 22:48:16 +0000
parents 384983d5ca1e
children 44966b7eec80
files MoinMoin/_tests/test_converter_text_html_text_x_moin.py
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_converter_text_html_text_x_moin.py	Mon Oct 03 22:36:36 2005 +0000
+++ b/MoinMoin/_tests/test_converter_text_html_text_x_moin.py	Mon Oct 03 22:48:16 2005 +0000
@@ -12,7 +12,7 @@
 error = converter.ConvertError
 
 
-class BaseTestCase(unittest.TestCase):
+class BaseTests(unittest.TestCase):
 
     def setUp(self):
         self.cfg = _tests.TestConfig(self.request, bang_meta=True)
@@ -66,7 +66,7 @@
         return getattr(self.request, name)
 
 
-class ConvertBlockRepeatableTestCase(BaseTestCase):
+class ConvertBlockRepeatableTests(BaseTests):
     def do(self, text, output):
         text = text.lstrip('\n')
         output = output.strip('\n')
@@ -912,7 +912,7 @@
 """
         self.do(test, output)
 
-class ConvertInlineFormatRepeatableTestCase(BaseTestCase):
+class ConvertInlineFormatRepeatableTests(BaseTests):
     def do(self, text, output):
         text = text.lstrip('\n')
         output = output.strip('\n')
@@ -1023,7 +1023,7 @@
         output = ur"<em>test <strong>test</strong></em>"
         self.do(test, output)
 
-class ConvertInlineItemRepeatableTestCase(BaseTestCase):
+class ConvertInlineItemRepeatableTests(BaseTests):
     def do(self, text, output):
         text = text.lstrip('\n')
         output = output.strip('\n')
@@ -1054,7 +1054,7 @@
         output = ur""
         self.do(test, output)
 
-class StripTestCase(unittest.TestCase):
+class StripTests(unittest.TestCase):
     def do(self, cls, text, output):
         tree = converter.parse(text)
         cls().do(tree)
@@ -1066,13 +1066,13 @@
         xml.dom.ext.Print(tree, out)
         self.failUnlessEqual("<?xml version='1.0' encoding='UTF-8'?>%s" % output, out.getvalue().decode("utf-8"))
 
-class StripBreakTestCase(StripTestCase):
+class StripBreakTests(StripTests):
     def do(self, text, output):
-        super(StripBreakTestCase, self).do(converter.strip_break, text, output)
+        super(StripBreakTests, self).do(converter.strip_break, text, output)
 
-class StripWhitespaceTestCase(StripTestCase):
+class StripWhitespaceTests(StripTests):
     def do(self, text, output):
-        super(StripWhitespaceTestCase, self).do(converter.strip_whitespace, text, output)
+        super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
 
     def test1(self):
         test = ur"""
@@ -1109,7 +1109,7 @@
         output = ur"""<p>test</p>"""
         self.do(test, output)
 
-class ConvertBrokenBrowserTestCase(BaseTestCase):
+class ConvertBrokenBrowserTests(BaseTests):
     def do(self, text, output):
         text = text.strip('\n')
         output = output.lstrip('\n')