Пример #1
0
    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"
Пример #2
0
 def test_expr(self):
     v = base.TokValueNakedLiteral("foo")
     assert v.expr()