Esempio n. 1
0
 def test_set(self):
     template = '''
     #set $foo = "bar"
     Hello ${foo}!
     '''
     calls = DirectiveAnalyzer.analyze(template)
     self.assertEqual(1, calls.get('set'))
Esempio n. 2
0
 def test_set(self):
     template = """
     #set $foo = "bar"
     Hello ${foo}!
     """
     calls = DirectiveAnalyzer.analyze(template)
     self.assertEquals(1, calls.get("set"))
Esempio n. 3
0
    def test_compilersettings(self):
        template = '''
#compiler-settings
useNameMapper = False
#end compiler-settings
        '''
        calls = DirectiveAnalyzer.analyze(template)
        self.assertEqual(1, calls.get('compiler-settings'))
Esempio n. 4
0
    def test_compilersettings(self):
        template = """
#compiler-settings
useNameMapper = False
#end compiler-settings
        """
        calls = DirectiveAnalyzer.analyze(template)
        self.assertEquals(1, calls.get("compiler-settings"))