Example #1
0
class TestTracEmoji(MockTestCase):

    def setUp(self):
        compmgr = ComponentManager() 
        self.e = TracEmoji(compmgr)
        super(self.__class__, self).setUp()

    def test_TracEmoji_wikiSyntaxWorks(self):
        tests = [':+1:', ':boom:']
        for test in tests:
            for r,c in self.e.get_wiki_syntax():
                rr = re.compile(r)
                if rr.match(test):
                    break
            else:
                self.fail('%s not matched' %(test))
Example #2
0
 def setUp(self):
     compmgr = ComponentManager() 
     self.e = TracEmoji(compmgr)
     super(self.__class__, self).setUp()