def METHOD_NAME(self):
    class X66:
        def method(this):
            __class__ = 10
            self.assertTrue('__class__' in dir(), "__class__ has to be listed (dir()) in method with usage")
            self.assertEqual(__class__, 10)
    X66().method()