Esempio n. 1
0
 def test_get_some_templates(self):
     self.assertEqual(len(SequenceDescriptor.templates()), 0)
     self.assertGreater(len(HtmlDescriptor.templates()), 0)
     self.assertIsNone(SequenceDescriptor.get_template("doesntexist.yaml"))
     self.assertIsNone(HtmlDescriptor.get_template("doesntexist.yaml"))
     self.assertIsNotNone(HtmlDescriptor.get_template("announcement.yaml"))
Esempio n. 2
0
 def test_get_some_templates(self):
     self.assertEqual(len(SequenceDescriptor.templates()), 0)
     self.assertGreater(len(HtmlDescriptor.templates()), 0)
     self.assertIsNone(SequenceDescriptor.get_template('doesntexist.yaml'))
     self.assertIsNone(HtmlDescriptor.get_template('doesntexist.yaml'))
     self.assertIsNotNone(HtmlDescriptor.get_template('announcement.yaml'))