changeset 775:57af51410c3a pytest2

old style classes changed to new style classes
author pkumar <contactprashantat@gmail.com>
date Tue, 23 Aug 2011 23:29:22 +0530
parents ada8cbfc165d
children baf55847914b 185f64deed0f
files MoinMoin/auth/_tests/test_log.py MoinMoin/items/_tests/test_Item.py MoinMoin/macro/_tests/test_Date.py MoinMoin/macro/_tests/test_GetVal.py MoinMoin/util/_tests/test_diff_text.py MoinMoin/util/_tests/test_filesys.py MoinMoin/util/_tests/test_forms.py MoinMoin/util/_tests/test_pycdb.py MoinMoin/util/_tests/test_send_file.py MoinMoin/util/_tests/test_util.py
diffstat 10 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/_tests/test_log.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/auth/_tests/test_log.py	Tue Aug 23 23:29:22 2011 +0530
@@ -12,7 +12,7 @@
 from flask import g as flaskg
 import pytest
 
-class TestAuthLog:
+class TestAuthLog(object):
     """ Test: TestAuthLog """
     def test_login(self):
         authlog_obj = AuthLog()
--- a/MoinMoin/items/_tests/test_Item.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/items/_tests/test_Item.py	Tue Aug 23 23:29:22 2011 +0530
@@ -234,7 +234,7 @@
         result2 = item.count_items()
         assert result2 == 2
 
-class TestBinary:
+class TestBinary(object):
     """ Test for arbitrary binary items """
 
     def test_get_templates(self):
@@ -319,7 +319,7 @@
         with pytest.raises(NotImplementedError):
             item.put_member('example1.txt', filecontent, content_length, expected_members=members)
 
-class TestTransformableBitmapImage:
+class TestTransformableBitmapImage(object):
 
     def test__transform(self):
         item_name = u'image_Item'
--- a/MoinMoin/macro/_tests/test_Date.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/macro/_tests/test_Date.py	Tue Aug 23 23:29:22 2011 +0530
@@ -13,7 +13,7 @@
 from MoinMoin.macro.Date import MacroDateTimeBase, Macro
 import pytest
 
-class TestMacroDateTimeBase:
+class TestMacroDateTimeBase(object):
     def test_parse_time(self):
         MacroDateTimeBase_obj = MacroDateTimeBase()
         test_time_args = '2011-08-07T11:11:11+0533'
@@ -27,7 +27,7 @@
             # things after next 10,000 years can't be predicted
             MacroDateTimeBase_obj.parse_time('12011-08-07T11:11:11')
 
-class TestMacro:
+class TestMacro(object):
     def test_macro(self):
         macro_obj = Macro()
         # when arguments is None
--- a/MoinMoin/macro/_tests/test_GetVal.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/macro/_tests/test_GetVal.py	Tue Aug 23 23:29:22 2011 +0530
@@ -15,7 +15,7 @@
 import pytest
 DATA = "This is a dict item."
 
-class TestMacro:
+class TestMacro(object):
     """ Test: GetVal.Macro """
 
     def setup_method(self, method):
--- a/MoinMoin/util/_tests/test_diff_text.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_diff_text.py	Tue Aug 23 23:29:22 2011 +0530
@@ -8,7 +8,7 @@
 
 from MoinMoin.util import diff_text
 
-class TestDiffText:
+class TestDiffText(object):
 
     def testDiff(self):
         """ util.diff_text.diff: test correct diff calculation """
--- a/MoinMoin/util/_tests/test_filesys.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_filesys.py	Tue Aug 23 23:29:22 2011 +0530
@@ -15,7 +15,7 @@
 win32_only = pytest.mark.skipif("sys.platform != 'win32'")
 win32_incompatible = pytest.mark.skipif("sys.platform == 'win32'")
 
-class TestFuid:
+class TestFuid(object):
     """ test filesys.fuid (a better mtime() alternative for up-to-date checking) """
 
     def setup_method(self, method):
@@ -80,7 +80,7 @@
         assert uid2 != uid1  # should be considered stale if platform has no inode support
 
 
-class TestRename:
+class TestRename(object):
     """ test filesys.rename* """
 
     def setup_method(self, method):
@@ -136,7 +136,7 @@
         assert not os.path.exists(self.src)
 
 
-class TestCopy:
+class TestCopy(object):
     """test filesys.copytree"""
 
     def setup_method(self, method):
--- a/MoinMoin/util/_tests/test_forms.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_forms.py	Tue Aug 23 23:29:22 2011 +0530
@@ -9,7 +9,7 @@
 from MoinMoin.util import forms
 import pytest
 
-class Bind:
+class Bind(object):
     """ class for self defined test_bind attributes """
     def __init__(self):
         self.label = 'test_content'
--- a/MoinMoin/util/_tests/test_pycdb.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_pycdb.py	Tue Aug 23 23:29:22 2011 +0530
@@ -12,7 +12,7 @@
 import pytest
 from MoinMoin.util import pycdb
 
-class TestCDBMaker:
+class TestCDBMaker(object):
     """ Test: util.pycdb.CDBMaker """
 
     def setup_method(self, method):
@@ -48,7 +48,7 @@
         expected = ['test_cdbfile']
         assert result == expected
 
-class TestCDBReader:
+class TestCDBReader(object):
     """ Test: util.pycdb.CDBReader """
 
     def setup_method(self, method):
--- a/MoinMoin/util/_tests/test_send_file.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_send_file.py	Tue Aug 23 23:29:22 2011 +0530
@@ -12,7 +12,7 @@
 from MoinMoin.util import send_file
 import pytest
 
-class TestFuid:
+class TestFuid(object):
     """ test for send_file """
 
     def setup_method(self, method):
--- a/MoinMoin/util/_tests/test_util.py	Tue Aug 23 16:55:17 2011 +0530
+++ b/MoinMoin/util/_tests/test_util.py	Tue Aug 23 23:29:22 2011 +0530
@@ -8,7 +8,7 @@
 
 from MoinMoin import util
 
-class TestUtil:
+class TestUtil(object):
 
     def testRangeList(self):
         """ util.rangelist: test correct function for misc. input values """