def testSavesTemplateWithText(self): routes.make_template("a", "text") t = routes.model.Template.objects.get(pk=1) self.assertEqual(t.text, 'text')
def testSavesTemplate(self): routes.make_template("a", "b") t = routes.model.Template.objects.get(pk=1)
def testSavesTemplateWithName(self): routes.make_template("name", "b") t = routes.model.Template.objects.get(pk=1) self.assertEqual(t.name, 'name')