def test_spec(self): v = base.TokValueNakedLiteral("foo") assert v.spec() == repr(v) == "foo" v = base.TokValueNakedLiteral("f\x00oo") assert v.spec() == repr(v) == r"f\x00oo"
def test_expr(self): v = base.TokValueNakedLiteral("foo") assert v.expr()