def test_makesNewStyle(self):
        """
        L{_oldstyle._oldStyle} wraps an old-style class and returns a new-style
        class that has the same functions, attributes, etc.
        """
        class SomeClassThatUsesOldStyle(SomeOldStyleClass):
            pass

        self.assertEqual(type(SomeClassThatUsesOldStyle), types.ClassType)
        updatedClass = _oldstyle._oldStyle(SomeClassThatUsesOldStyle)
        self.assertEqual(type(updatedClass), type)
        self.assertEqual(updatedClass.__bases__, (SomeOldStyleClass, object))
        self.assertEqual(updatedClass().func(), "hi")
        self.assertEqual(updatedClass().bar, "baz")

        L{_oldstyle._oldStyle} wraps an old-style class and returns a new-style
        class that has the same functions, attributes, etc.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_nooldstyle.py