summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-29 17:50:20 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-29 17:50:20 +0200
commitd0d3fbc24424f4d369850ff7c5b561eea16435d0 (patch)
tree06c905007d620ed0953cb541585f205a4f77e9a7 /ishtar_common/tests.py
parentd30f75d0cecebd960ca1f1b5044f8802e0215613 (diff)
parent661218e0acd24fc3bca76229b61d0cb91a54be1c (diff)
downloadIshtar-d0d3fbc24424f4d369850ff7c5b561eea16435d0.tar.bz2
Ishtar-d0d3fbc24424f4d369850ff7c5b561eea16435d0.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 5add2e2cf..a4d354eb1 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -314,3 +314,13 @@ class IshtarSiteProfileTest(TestCase):
profile.save()
response = c.get(reverse('start'))
self.assertTrue("section-file_management" in response.content)
+
+ def testExternalKey(self):
+ profile = models.get_current_profile()
+ p = models.Person.objects.create(name='plouf', surname=u'Tégada')
+ self.assertEqual(p.raw_name, u"PLOUF Tégada")
+ profile.person_raw_name = u'{surname|slug} {name}'
+ profile.save()
+ p.raw_name = ''
+ p.save()
+ self.assertEqual(p.raw_name, u"tegada plouf")