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)
Exemple #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)
Exemple #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)
Exemple #4
0
def _find_by_name(context_name):
    return old_context_dao.get(context_name)
Exemple #5
0
def find_by_name(context_name):
    return old_context_dao.get(context_name)