

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