Ejemplo n.º 1
0
rsa = Formulaire(url, [Page([]), page0, page1, page2, page3, page4, page_rev])


# TODO: a mettre
def check_formulaire(formulaire):
    if formulaire["seulOuCouple"] == "COUPLE":
        assert formulaire["DateIsole"] == ""
        
if __name__ == '__main__':
    exemple = ["FranceMetro",
               'SEUL', "01/06/2003",
               'MON', "01/06/1960", '', '0', '2', '0',
               "EnActivite",
               '0', '0', '0', '0']
    rsa.set_choice(exemple)
    rsa.fill_in()

#for sitPro in rsaSitPro.possible_choices:
#    exemple[-1] = sitPro
#    rsa.set_choice(exemple)
#    print('********* ' + sitPro)
#    rsa.fill_in()

#continue = "EtudiantSalarie",



#print html_page
#
#print etree.tostring(form_element)
logement = Formulaire(
    url,
    [Page([]), page0, page1, page2, page3, page4, page5, page6, page7, page8])

if __name__ == '__main__':
    exemple = [
        "FranceMetro", 'SEUL', "01/06/2003", 'MON', "01/06/1960", '', '0', '2',
        '0', "EnActivite", '0', '0', '0', '0'
    ]
    exemple = [
        '75012', 'loc', 'false', "appartement", 'seul', 'non', '500', 'oui',
        '01/04/1980', '05/03/1975', 'non', 'non', '2', '0', 'oui', 'oui',
        'chomage_imposable', 'sup2m', 'ass'
    ]

    logement.set_choice(exemple)
    logement.fill_in()

#for sitPro in rsaSitPro.possible_choices:
#    exemple[-1] = sitPro
#    rsa.set_choice(exemple)
#    print('********* ' + sitPro)
#    rsa.fill_in()

#continue = "EtudiantSalarie",

#print html_page
#
#print etree.tostring(form_element)
    exemple = ["FranceMetro",
               'SEUL', "01/06/2003",
               'MON', "01/06/1960", '', '0', '2', '0',
               "EnActivite",
               '0', '0', '0', '0']
    exemple = ['75012',
               'loc', 'false',
               "appartement", 'seul', 'non',
               '500',
               'oui', '01/04/1980', '05/03/1975', 'non', 'non', '2', '0',
               'oui', 'oui',
               'cho',
               'sup2m', 'ass']     
    
    
    logement.set_choice(exemple)
    logement.fill_in()

#for sitPro in rsaSitPro.possible_choices:
#    exemple[-1] = sitPro
#    rsa.set_choice(exemple)
#    print('********* ' + sitPro)
#    rsa.fill_in()

#continue = "EtudiantSalarie",



#print html_page
#
#print etree.tostring(form_element)
    [revPercuSeul, chomPercuSeul, ressPercuSeul, pfPercuSeul, BCContinuer])

rsa = Formulaire(url, [Page([]), page0, page1, page2, page3, page4, page_rev])


# TODO: a mettre
def check_formulaire(formulaire):
    if formulaire["seulOuCouple"] == "COUPLE":
        assert formulaire["DateIsole"] == ""


if __name__ == '__main__':
    exemple = [
        "FranceMetro", 'SEUL', "01/06/2003", 'MON', "01/06/1960", '', '0', '2',
        '0', "EnActivite", '0', '0', '0', '0'
    ]
    rsa.set_choice(exemple)
    rsa.fill_in()

#for sitPro in rsaSitPro.possible_choices:
#    exemple[-1] = sitPro
#    rsa.set_choice(exemple)
#    print('********* ' + sitPro)
#    rsa.fill_in()

#continue = "EtudiantSalarie",

#print html_page
#
#print etree.tostring(form_element)