

def test_namespace_request(self):
    entity = datastore.Entity('Kind1', id=123, _app=self.app_id, _namespace='google')
    entity['intprop'] = 1
    entity['listprop'] = [7, 8, 9]
    datastore.Put(request)
    request = webapp2.Request.blank('/datastore?kind=Kind1&namespace=google')
    response = webapp2.Response()
    handler = datastore_viewer.DatastoreRequestHandler(request, response)
    handler.render('datastore_viewer.html', {
        'entities': mox.IgnoreArg(),
        'headers': mox.IgnoreArg(),
        'kind': 'Kind1',
        'kinds': ['Kind1'],
        'message': None,
        'namespace': 'google',
        'num_pages': 1,
        'order': None,
        'order_base_url': '/datastore?kind=Kind1&namespace=google',
        'page': 1,
        'paging_base_url': '/datastore?kind=Kind1&namespace=google',
        'select_namespace_url': '/datastore?kind=Kind1&namespace=google',
        'show_namespace': True,
        'start': 0,
        'total_entities': 1,
    })
    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 DatastoreRequestHandlerGetTest.test_namespace_request/VarMisuse@57/75 `entity`->`request`