def call_it(self, text):
     from pelican.rstdirectives import abbr_role
     rawtext = text
     lineno = 42
     inliner = Mock(name='inliner')
     nodes, system_messages = abbr_role(
         'abbr', rawtext, text, lineno, inliner)
     self.assertEqual(system_messages, [])
     self.assertEqual(len(nodes), 1)
     return nodes[0]
Example #2
0
 def call_it(self, text):
     from pelican.rstdirectives import abbr_role
     rawtext = text
     lineno = 42
     inliner = Mock(name='inliner')
     nodes, system_messages = abbr_role('abbr', rawtext, text, lineno,
                                        inliner)
     self.assertEqual(system_messages, [])
     self.assertEqual(len(nodes), 1)
     return nodes[0]