def __init__(self, parent_with_realization): """ TESTS:: sage: from sage.categories.realizations import Category_realization_of_parent sage: A = Sets().WithRealizations().example(); A The subset algebra of {1, 2, 3} over Rational Field sage: C = A.Realizations(); C Category of realizations of The subset algebra of {1, 2, 3} over Rational Field sage: isinstance(C, Category_realization_of_parent) True sage: C.parent_with_realization The subset algebra of {1, 2, 3} over Rational Field sage: TestSuite(C).run() """ Category_over_base.__init__(self, parent_with_realization) self.parent_with_realization = parent_with_realization
def __init__(self, parent_with_realization): """ TESTS:: sage: from sage.categories.realizations import Category_realization_of_parent sage: A = Sets().WithRealizations().example(); A The subset algebra of {1, 2, 3} over Rational Field sage: C = A.Realizations(); C Category of realizations of The subset algebra of {1, 2, 3} over Rational Field sage: isinstance(C, Category_realization_of_parent) True sage: C.parent_with_realization The subset algebra of {1, 2, 3} over Rational Field sage: TestSuite(C).run() """ Category_over_base.__init__(self, parent_with_realization) self.parent_with_realization = parent_with_realization
def __init__(self, parent_with_realization): """ TESTS:: sage: from sage.categories.realizations import Category_realization_of_parent sage: A = Sets().WithRealizations().example(); A The subset algebra of {1, 2, 3} over Rational Field sage: C = A.Realizations(); C Category of realizations of The subset algebra of {1, 2, 3} over Rational Field sage: isinstance(C, Category_realization_of_parent) True sage: C.parent_with_realization The subset algebra of {1, 2, 3} over Rational Field sage: TestSuite(C).run(skip=["_test_category_over_bases"]) .. TODO:: Fix the failing test by making ``C`` a singleton category. This will require some fiddling with the assertion in :meth:`Category_singleton.__classcall__` """ Category_over_base.__init__(self, parent_with_realization) self.parent_with_realization = parent_with_realization
def __init__(self, parent_with_realization): """ TESTS:: sage: from sage.categories.realizations import Category_realization_of_parent sage: A = Sets().WithRealizations().example(); A The subset algebra of {1, 2, 3} over Rational Field sage: C = A.Realizations(); C Category of realizations of The subset algebra of {1, 2, 3} over Rational Field sage: isinstance(C, Category_realization_of_parent) True sage: C.parent_with_realization The subset algebra of {1, 2, 3} over Rational Field sage: TestSuite(C).run(skip=["_test_category_over_bases"]) .. TODO:: Fix the failing test by making ``C`` a singleton category. This will require some fiddling with the assertion in :meth:`Category_singleton.__classcall__` """ Category_over_base.__init__(self, parent_with_realization) self.parent_with_realization = parent_with_realization