def test_printmethod():
    x = symbols('x')

    class nint(Function):
        def _fcode(self, printer):
            return printer._print(self.args[0]) % "nint(%s)"
    assert fcode(nint(x)) == "      nint(x)"
dataset/ETHPy150Open sympy/sympy/sympy/printing/tests/test_fcode.py/test_printmethod/swapped operands of `%`