pkumar avatar pkumar committed 57af514

old style classes changed to new style classes

Comments (0)

Files changed (10)

MoinMoin/auth/_tests/test_log.py

 from flask import g as flaskg
 import pytest
 
-class TestAuthLog:
+class TestAuthLog(object):
     """ Test: TestAuthLog """
     def test_login(self):
         authlog_obj = AuthLog()

MoinMoin/items/_tests/test_Item.py

         result2 = item.count_items()
         assert result2 == 2
 
-class TestBinary:
+class TestBinary(object):
     """ Test for arbitrary binary items """
 
     def test_get_templates(self):
         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'

MoinMoin/macro/_tests/test_Date.py

 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'
             # 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

MoinMoin/macro/_tests/test_GetVal.py

 import pytest
 DATA = "This is a dict item."
 
-class TestMacro:
+class TestMacro(object):
     """ Test: GetVal.Macro """
 
     def setup_method(self, method):

MoinMoin/util/_tests/test_diff_text.py

 
 from MoinMoin.util import diff_text
 
-class TestDiffText:
+class TestDiffText(object):
 
     def testDiff(self):
         """ util.diff_text.diff: test correct diff calculation """

MoinMoin/util/_tests/test_filesys.py

 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):
         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):
         assert not os.path.exists(self.src)
 
 
-class TestCopy:
+class TestCopy(object):
     """test filesys.copytree"""
 
     def setup_method(self, method):

MoinMoin/util/_tests/test_forms.py

 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'

MoinMoin/util/_tests/test_pycdb.py

 import pytest
 from MoinMoin.util import pycdb
 
-class TestCDBMaker:
+class TestCDBMaker(object):
     """ Test: util.pycdb.CDBMaker """
 
     def setup_method(self, method):
         expected = ['test_cdbfile']
         assert result == expected
 
-class TestCDBReader:
+class TestCDBReader(object):
     """ Test: util.pycdb.CDBReader """
 
     def setup_method(self, method):

MoinMoin/util/_tests/test_send_file.py

 from MoinMoin.util import send_file
 import pytest
 
-class TestFuid:
+class TestFuid(object):
     """ test for send_file """
 
     def setup_method(self, method):

MoinMoin/util/_tests/test_util.py

 
 from MoinMoin import util
 
-class TestUtil:
+class TestUtil(object):
 
     def testRangeList(self):
         """ util.rangelist: test correct function for misc. input values """
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.