]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - parser/test_parser.py
Version 0.6: Use parsley instead of parsimonious
[phdru.name/cgi-bin/blog-ru/search-tags.git] / parser / test_parser.py
index 0a30eda4217dd655b99c272b6001151c598fd6e6..67c0ae3fc848e0a95df1a47e3c2387017b7d7491 100755 (executable)
@@ -1,12 +1,12 @@
 #! /usr/bin/env python
 
 import unittest
-from parsimonious import ParseError
-from parser import compile
+from ometa.runtime import ParseError
+from parser import parse
 
 class TestParser(unittest.TestCase):
     def _parse(self, input):
-        return compile(input)
+        return parse(input)
 
     def test_02_tag(self):
         self.assertEqual(self._parse('xxx'), ('NAME', 'xxx'))