5 class TestSimpCase(unittest.TestCase):
7 a=SIMP(typ='I',statut='o')
9 self.assert_(cr.estvide())
11 def testStatut2(self):
14 self.assert_(cr.estvide())
16 def testStatut3(self):
17 a=SIMP(typ='I',statut='s')
20 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21 ! L'attribut 'statut' doit valoir 'o','f','c' ou 'd' : 's' !
22 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25 self.assertEqual(str(cr) , expected_cr)
27 def testPosition1(self):
28 a=SIMP(typ='I',position='total')
31 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32 ! L'attribut 'position' doit valoir 'local','global' ou 'global_jdc' : 'total' !
33 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
36 self.assertEqual(str(cr) , expected_cr)
38 def testMinMax1(self):
39 a=SIMP(typ='I',min='**',max=12)
42 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43 ! Nombres d'occurrence min et max invalides : '**' 12 !
44 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47 self.assertEqual(str(cr) , expected_cr)