[Modeling-cvs] ProjectModeling/Modeling/tests test_PyModel.py,1.8,1.9
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2004-09-06 19:05:55
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28028/Modeling/tests Modified Files: test_PyModel.py Log Message: Fixed bug #1023234: PyModel fails to validate to-many relationships in associations where the upper bound is a finite number Index: test_PyModel.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_PyModel.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** test_PyModel.py 20 Jul 2004 06:21:57 -0000 1.8 --- test_PyModel.py 6 Sep 2004 19:05:44 -0000 1.9 *************** *** 478,481 **** --- 478,492 ---- self.failUnless(model.is_built) self.assertRaises(RuntimeError, model.build) + + def test_10_bound_relationships(self): + "[PyModel] bug #1023234-relationships with an finite upper bound" + model = self.model + model.entities = [ + Entity('Employee'), Entity('Store'), + ] + model.associations = [ Association('Employee', 'Store', + multiplicity = [ [0,1], [0,2] ] ) + ] + model.build() def test_suite(): |