Esempio n. 1
0
 def test_get_mako_template(self):
     try:
         import mako
     except ImportError:
         self.skip("No mako module. Skipping test.")
     template = utils.get_mako_template("ci/index.mako")
     self.assertIsInstance(template, mako.template.Template)
Esempio n. 2
0
 def test_get_mako_template(self):
     try:
         import mako
     except ImportError:
         self.skip("No mako module. Skipping test.")
     template = utils.get_mako_template("ci/index.mako")
     self.assertIsInstance(template, mako.template.Template)
Esempio n. 3
0
 def test_get_template_mako(self, mock_get_mako_template):
     mock_get_mako_template.return_value = "fake_template"
     template = utils.get_mako_template("template.mako")
     self.assertEqual("fake_template", template)
     mock_get_mako_template.assert_called_once_with("template.mako")