entities/test/unittest_base.py
changeset 10396 33e44293b0eb
parent 9859 fc978ff7f381
child 10402 e3c20f4d1a7c
--- a/entities/test/unittest_base.py	Fri May 15 18:06:03 2015 +0200
+++ b/entities/test/unittest_base.py	Wed Apr 15 22:48:20 2015 +0200
@@ -137,6 +137,12 @@
             self.assertEqual(e.dc_title(), 'member')
             self.assertEqual(e.name(), u'bouah lôt')
 
+    def test_falsey_dc_title(self):
+        with self.admin_access.repo_cnx() as cnx:
+            e = cnx.create_entity('Company', order=0, name=u'pythonian')
+            cnx.commit()
+            self.assertEqual(u'0', e.dc_title())
+
     def test_allowed_massmail_keys(self):
         with self.admin_access.repo_cnx() as cnx:
             e = cnx.execute('CWUser U WHERE U login "member"').get_entity(0, 0)