Project

General

Profile

Revision 268222e9

ID268222e9eef6e2ca81c4e59c3e525c6f6868cf8f
Parent 75f39ec1
Child d6de3c2f

Added by Francois POIROTTE over 13 years ago

Correction des tests.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5142 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigigraph/tests/functional/test_search_form.py
414 414
        # Récupération des résultats obtenus après une recherche
415 415
        # sur le graphe 'graph1' pour l'utilisateur 'user'
416 416
        response = self.app.post(
417
        '/rpc/searchHostAndGraph?search_form_host=%s&search_form_host=%s' %
417
        '/rpc/searchHostAndGraph?search_form_host=%s&search_form_graph=%s' %
418 418
            (str(host1.name), str(graph1.name)), {
419 419
            }, extra_environ={'REMOTE_USER': 'user'})
420 420
        json = response.json
......
430 430
        # Récupération des résultats obtenus après une recherche
431 431
        # sur le graphe 'graph3' pour l'utilisateur 'user'
432 432
        response = self.app.post(
433
        '/rpc/searchHostAndGraph?search_form_host=%s&search_form_host=%s' %
433
        '/rpc/searchHostAndGraph?search_form_host=%s&search_form_graph=%s' %
434 434
            (str(host3.name), str(graph3.name)), {
435 435
            }, extra_environ={'REMOTE_USER': 'user'})
436 436
        json = response.json
......
492 492
        # sur le graphe 'graph1' pour un utilisateur anonyme :
493 493
        # le contrôleur doit retourner une erreur 401
494 494
        self.app.post(
495
            '/rpc/searchHostAndGraph?search_form_host=%s&search_form_host=%s' %
495
            '/rpc/searchHostAndGraph?search_form_host=%s&search_form_graph=%s' %
496 496
            (str(host1.name), str(graph1.name)), {
497 497
            }, status=401)
498 498

  
......
508 508
        # Récupération des résultats obtenus après une recherche
509 509
        # sur un graphe inexistant pour l'utilisateur 'manager'
510 510
        response = self.app.post(
511
        '/rpc/searchHostAndGraph?search_form_host=%s'
512
            '&search_form_graph=graphe_totalement_inexistant' %
513
            (str(host1.name), ), {
511
        '/rpc/searchHostAndGraph?search_form_host=%s&search_form_graph=%s' %
512
            (str(host1.name), 'graphe_totalement_inexistant'), {
514 513
            }, extra_environ={'REMOTE_USER': 'manager'})
515 514
        json = response.json
516 515

  

Also available in: Unified diff