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)
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)
def _find_by_name(context_name): return old_context_dao.get(context_name)
def find_by_name(context_name): return old_context_dao.get(context_name)