Exemplo n.º 1
0
    def test_get(self):
        context_name = 'test_context'
        self._insert_context(context_name)

        context = context_dao.get(context_name)

        self.assertEqual(context.name, context_name)
Exemplo n.º 2
0
    def test_get(self):
        context_name = 'test_context'
        self._insert_context(context_name)

        context = context_dao.get(context_name)

        self.assertEqual(context.name, context_name)
Exemplo n.º 3
0
    def test_get(self):
        context_name = 'test_context'
        tenant = self.add_tenant()

        self.add_context(name=context_name, tenant_uuid=tenant.uuid)

        context = context_dao.get(context_name)

        self.assertEqual(context.name, context_name)
Exemplo n.º 4
0
def _find_by_name(context_name):
    return old_context_dao.get(context_name)
Exemplo n.º 5
0
def find_by_name(context_name):
    return old_context_dao.get(context_name)