

def test_get_no_entity_key_string(self):
    request = webapp2.Request.blank('/datastore/edit?kind=Kind1&next=http://next/')
    response = webapp2.Response()
    handler = datastore_viewer.DatastoreEditRequestHandler(request, response)
    handler.render('datastore_edit.html', {
        'fields': [('boolprop', 'bool', mox.Regex('^<select class="bool"(.|\n)*$')), ('dateprop', 'overflowdatetime', mox.Regex('^<input class="overflowdatetime".*value="".*$')), ('floatprop', 'float', mox.Regex('^<input class="float".*value="".*$')), ('intprop', 'int', mox.Regex('^<input class="int".*value="".*$')), ('listprop', 'list', ''), ('stringprop', 'string', mox.Regex('^<input class="string".*$'))],
        'key': None,
        'key_id': None,
        'key_name': None,
        'kind': 'Kind1',
        'namespace': '',
        'next': 'http://next/',
        'parent_key': None,
        'parent_key_string': None,
    })
    self.mox.ReplayAll()
    handler.get()
    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_no_entity_key_string/original