def test_flavor_template_get(self): test_template = self.tuskar_flavor_templates.first() template = FlavorTemplate.get(self.request, test_template.id) self.assertIsInstance(template, FlavorTemplate) self.assertEquals(template.name, test_template.name)
def test_flavor_template_list(self): templates = FlavorTemplate.list(self.request) self.assertEquals(7, len(templates)) for t in templates: self.assertIsInstance(t, FlavorTemplate)