1 # -*- coding: utf-8 -*-
3 sys.path[:0]=['../..','../../Aster']
5 from Accas import SIMP,FACT
7 cata= FACT(sect1=FACT(a=SIMP(typ='I'),b=SIMP(typ='I')),
8 sect2=FACT(c=SIMP(typ='I'),d=SIMP(typ='I')),
13 print "Verification sans erreur"
17 # On récupère les plugins de la famille convert
20 p=convert.plugins['ini']()
21 p.readfile('toto.ini')
23 if not p.cr.estvide():
27 o=cata(eval(s),'mcf1',None)
31 o=cata(p.convert('dict'),'mcf2',None)
35 # On récupère les plugins de la famille generator
38 g=generator.plugins['ini']()
40 g.writefile('titi.ini')
42 g=generator.plugins['pyth']()
44 g.writefile('titi.pyth')
46 p=convert.plugins['pyth']()
47 p.readfile('toto.pyth')
49 if not p.cr.estvide():
56 assert o.isvalid() == 0