Ejemplo n.º 1
0
 def testParseNoConfig(self):
     poor_parser = Parser({})
     self.assertRaises(
         NoSmartLinkConfFoundException,
         poor_parser.parse,
         SmartLinkParser.finder.match("[[ mad max ]]"),
     )
Ejemplo n.º 2
0
 def setUp(self):
     self.conf = MySmartLinkConf()
     self.p = Parser(dict(
         movie=self.conf,
         m=self.conf
     ))