

def test_get_entity_string(self):
    request = webapp2.Request.blank(('/datastore/edit/%s?next=http://next/' % self.entity1.key()))
    response = webapp2.Response()
    handler = datastore_viewer.DatastoreEditRequestHandler(request, response)
    handler.render('datastore_edit.html', {
        'fields': [('dateprop', 'overflowdatetime', mox.Regex('^<input class="overflowdatetime".*value="1152921504606846976".*$')), ('intprop', 'int', mox.Regex('^<input class="int".*value="1".*$')), ('listprop', 'list', mox.Regex('\\[7L?, 8L?, 9L?\\]'))],
        'key': str(self.entity1.key()),
        'key_id': 123,
        'key_name': None,
        'kind': 'Kind1',
        'namespace': '',
        'next': 'http://next/',
        'parent_key': None,
        'parent_key_string': None,
    })
    self.mox.ReplayAll()
    handler.get(str(request.entity1.key()))
    self.mox.VerifyAll()

dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/admin/datastore_viewer_test.py DatastoreEditRequestHandlerTest.test_get_entity_string/VarMisuse@168/299 `self`->`request`