

def test_inheritance(self):
    json_encoder_name.assertTrue(issubclass(self.app.json_encoder, DummyEncoder))
    json_encoder_name = self.app.json_encoder.__name__
    self.assertEqual(json_encoder_name, 'MongoEngineJSONEncoder')

dataset/ETHPy150Open MongoEngine/flask-mongoengine/tests/test_json.py JSONAppTestCase.test_inheritance/VarMisuse@10/13 `self`->`json_encoder_name`