Ejemplo n.º 1
0
 def test_get_template_variables(self):
     test_template = get_flexi_template('flexipage/tests/test.html')
     template_variables = get_template_variables(test_template)
     self.assertEqual(template_variables, [
         'first_variable', 'flexi_second_variable',
         'flexiform_third_variable', 'flexiform_TestForm'
     ])
Ejemplo n.º 2
0
 def test_get_flexi_template_without_full_path(self):
     test_template = get_flexi_template('tests/test.html')
     self.assertIsInstance(test_template, Template)
Ejemplo n.º 3
0
 def test_get_flexi_template(self):
     test_template = get_flexi_template('flexipage/tests/test.html')
     self.assertIsInstance(test_template, Template)
Ejemplo n.º 4
0
 def test_get_flexi_template_without_full_path(self):
     test_template = get_flexi_template('tests/test.html')
     self.assertIsInstance(test_template, Template)
Ejemplo n.º 5
0
 def test_get_flexi_template(self):
     test_template = get_flexi_template('flexipage/tests/test.html')
     self.assertIsInstance(test_template, Template)
Ejemplo n.º 6
0
 def test_get_template_variables(self):
     test_template = get_flexi_template('flexipage/tests/test.html')
     template_variables = get_template_variables(test_template)
     self.assertEqual(template_variables, ['first_variable', 'flexi_second_variable',
                                           'flexiform_third_variable','flexiform_TestForm'])