summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index a9e92e1f2..095056c2e 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -954,6 +954,13 @@ class IshtarBasicTest(TestCase):
response = self.client.get(reverse('status'))
self.assertEqual(response.status_code, 200)
+ def test_person_rawname(self):
+ person = models.Person.objects.create(name="Weasley", surname="Bill")
+ self.assertEqual(person.raw_name, "WEASLEY Bill")
+ person.surname = "George"
+ person.save()
+ self.assertEqual(person.raw_name, "WEASLEY George")
+
class GeomaticTest(TestCase):
def test_post_save_point(self):