Source code for backend.globaleaks.tests.handlers.admin.test_context

# -*- coding: utf-8 -*-
from globaleaks.handlers.admin import context
from globaleaks.models import Context
from globaleaks.tests import helpers


[docs]class TestContextsCollection(helpers.TestCollectionHandler):
[docs] _handler = context.ContextsCollection
[docs] _test_desc = { 'model': Context, 'create': context.create_context, 'data': { 'tip_timetolive': 100
} }
[docs]class TestContextInstance(helpers.TestInstanceHandler):
[docs] _handler = context.ContextInstance
[docs] _test_desc = { 'model': Context, 'create': context.create_context, 'data': { 'tip_timetolive': 100
} }