r21364 - gnucash/trunk/src/optional/python-bindings/tests - Added test for Employee name (uses GncOwner*Name).

Geert Janssens gjanssens at code.gnucash.org
Thu Sep 29 07:00:31 EDT 2011


Author: gjanssens
Date: 2011-09-29 07:00:31 -0400 (Thu, 29 Sep 2011)
New Revision: 21364
Trac: http://svn.gnucash.org/trac/changeset/21364

Modified:
   gnucash/trunk/src/optional/python-bindings/tests/test_business.py
Log:
Added test for Employee name (uses GncOwner*Name).
Patch by Hendrik van Antwerpen <hendrik at van-antwerpen.net>

Modified: gnucash/trunk/src/optional/python-bindings/tests/test_business.py
===================================================================
--- gnucash/trunk/src/optional/python-bindings/tests/test_business.py	2011-09-29 11:00:19 UTC (rev 21363)
+++ gnucash/trunk/src/optional/python-bindings/tests/test_business.py	2011-09-29 11:00:31 UTC (rev 21364)
@@ -49,6 +49,12 @@
         self.assertTrue( self.customer.Equal( self.job.GetOwner() ) )
         self.assertTrue( self.customer.Equal( self.invoice.GetOwner() ) )
 
+    def test_employee_name(self):
+        NAME = 'John Doe'
+        self.assertEqual( '', self.employee.GetName() )
+        self.employee.SetName(NAME)
+        self.assertEqual( NAME, self.employee.GetName() )
+
     def test_post(self):
         self.assertTrue( self.invoice.IsPosted() )
 



More information about the gnucash-changes mailing list