@classmethod
    @cacheit
    def _roots_trivial(cls, poly, radicals):
        if poly.degree() == 1:
            return roots_linear(poly)

        if not radicals:
            return None

        if poly.degree() == 2:
            return roots_quadratic(poly)
        elif poly.length() == 2 and poly.TC():
            return roots_binomial(poly)
        else:
            return None
Set up FilterTests
dataset/ETHPy150Open sympy/sympy/sympy/polys/rootoftools.py/ComplexRootOf._roots_trivial--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/customercare/tests/test_views.py/FilterTests.setUp