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' ])
def test_get_flexi_template_without_full_path(self): test_template = get_flexi_template('tests/test.html') self.assertIsInstance(test_template, Template)
def test_get_flexi_template(self): test_template = get_flexi_template('flexipage/tests/test.html') self.assertIsInstance(test_template, Template)
def test_get_flexi_template_without_full_path(self): test_template = get_flexi_template('tests/test.html') self.assertIsInstance(test_template, Template)
def test_get_flexi_template(self): test_template = get_flexi_template('flexipage/tests/test.html') self.assertIsInstance(test_template, Template)
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'])