예제 #1
0
파일: tests.py 프로젝트: fiston/smartmin
 def test_map(self):
     from smartmin.templatetags.smartmin import map
     self.assertEquals("title: First Post id: 1",
                       map("title: %(title)s id: %(id)d", self.post))
예제 #2
0
파일: tests.py 프로젝트: norkans7/smartmin
 def test_map(self):
     from smartmin.templatetags.smartmin import map
     self.assertEquals("title: First Post id: 1", map("title: %(title)s id: %(id)d", self.post))
예제 #3
0
파일: tests.py 프로젝트: tsmith50/smartmin
 def test_map(self):
     from smartmin.templatetags.smartmin import map
     kwargs = {'title': self.post.title, 'id': self.post.pk}
     self.assertEquals("title: {title} id: {id}".format(**kwargs),
                       map("title: %(title)s id: %(id)d", self.post))