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