예제 #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)
예제 #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)
예제 #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)
예제 #4
0
def _find_by_name(context_name):
    return old_context_dao.get(context_name)
예제 #5
0
파일: services.py 프로젝트: jaunis/xivo-dao
def find_by_name(context_name):
    return old_context_dao.get(context_name)