From 18a1355e386b2cb863ca8be27392f84945baca08 Mon Sep 17 00:00:00 2001 From: Nicolas Joyard <joyard.nicolas@gmail.com> Date: Fri, 10 Jun 2016 22:30:10 +0200 Subject: [PATCH] Add tests for paged/filtered groups & update fixtures --- memopol/tests/base.py | 3 - .../content | 530 +++++ .../content | 528 +++++ .../GroupListTest.test_active_parties/content | 518 +++++ .../GroupListTest.test_all_committees/content | 530 +++++ .../content | 528 +++++ .../GroupListTest.test_all_parties/content | 529 +++++ .../GroupListTest.test_chambers/content | 93 +- .../GroupListTest.test_committees/content | 638 ------ .../GroupListTest.test_country/content | 799 +++---- .../GroupListTest.test_delegations/content | 1990 ----------------- .../GroupListTest.test_parties/content | 668 ------ memopol/tests/test_dossiers.py | 6 + memopol/tests/test_group_list.py | 45 +- 14 files changed, 3585 insertions(+), 3820 deletions(-) create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_active_committees/content create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_active_delegations/content create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_active_parties/content create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_all_committees/content create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_all_delegations/content create mode 100644 memopol/tests/response_fixtures/GroupListTest.test_all_parties/content delete mode 100644 memopol/tests/response_fixtures/GroupListTest.test_committees/content delete mode 100644 memopol/tests/response_fixtures/GroupListTest.test_delegations/content delete mode 100644 memopol/tests/response_fixtures/GroupListTest.test_parties/content diff --git a/memopol/tests/base.py b/memopol/tests/base.py index 8075a3bd..f1e39dbd 100644 --- a/memopol/tests/base.py +++ b/memopol/tests/base.py @@ -42,9 +42,6 @@ class UrlGetTestMixin(object): class ResponseDiffMixin(object): def responsediff_test(self, url, numQueries): - # Setup session variables - self.client.get(url) - with self.assertNumQueries(numQueries): response = self.client.get(url) diff --git a/memopol/tests/response_fixtures/GroupListTest.test_active_committees/content b/memopol/tests/response_fixtures/GroupListTest.test_active_committees/content new file mode 100644 index 00000000..8e578949 --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_active_committees/content @@ -0,0 +1,530 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 20 + + + <br /> + Display : + + current legislature only / + <a href='?active_only=0'> + all data + </a> + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> + + AGRI + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> + + Committee on Agriculture and Rural Development + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> + + CONT + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> + + Committee on Budgetary Control + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> + + BUDG + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> + + Committee on Budgets + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> + + LIBE + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> + + Committee on Civil Liberties, Justice and Home Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> + + AFCO + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> + + Committee on Constitutional Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> + + CULT + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> + + Committee on Culture and Education + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> + + ECON + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> + + Committee on Economic and Monetary Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> + + EMPL + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> + + Committee on Employment and Social Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> + + PECH + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> + + Committee on Fisheries + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> + + AFET + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> + + Committee on Foreign Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> + + ITRE + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> + + Committee on Industry, Research and Energy + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20International%20Trade/'> + + INTA + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20International%20Trade/'> + + Committee on International Trade + + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_active_delegations/content b/memopol/tests/response_fixtures/GroupListTest.test_active_delegations/content new file mode 100644 index 00000000..41ca09e5 --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_active_delegations/content @@ -0,0 +1,528 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + + <li> + <a href='?&page=3'> + 3 + + </a> + </li> + + + + + + <li> + <a href='?&page=4'> + 4 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=7'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 78 + + + <br /> + Display : + + current legislature only / + <a href='?active_only=0'> + all data + </a> + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> + + Delegation for relations with Afghanistan + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> + + Delegation for relations with Albania, Bulgaria and Romania + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> + + Delegation for relations with Bosnia and Herzegovina, and Kosovo + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> + + Delegation for relations with Bulgaria and Romania + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> + + Delegation for relations with Estonia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> + + Delegation for relations with Estonia, Lithuania and Latvia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> + + Delegation for relations with India + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Israel/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Israel/'> + + Delegation for relations with Israel + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Lithuania/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Lithuania/'> + + Delegation for relations with Lithuania + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Mercosur/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Mercosur/'> + + Delegation for relations with Mercosur + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Palestine/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Palestine/'> + + Delegation for relations with Palestine + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Russia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Russia/'> + + Delegation for relations with Russia + + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_active_parties/content b/memopol/tests/response_fixtures/GroupListTest.test_active_parties/content new file mode 100644 index 00000000..370f2dcd --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_active_parties/content @@ -0,0 +1,518 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 22 + + + <br /> + Display : + + current legislature only / + <a href='?active_only=0'> + all data + </a> + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> + + GUE/NGL + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> + + <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> + + GUE/NGL + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> + + <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left - Nordic Green Left + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> + + EFDD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> + + <span class="group-icon group-icon-efdd"></span> Europe of Freedom and Direct Democracy Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> + + ENF + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> + + <span class="group-icon group-icon-enf"></span> Europe of Nations and Freedom Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> + + EFD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> + + <span class="group-icon group-icon-efd"></span> Europe of freedom and democracy Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> + + ECR + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> + + <span class="group-icon group-icon-ecr"></span> European Conservatives and Reformists Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> + + UFE + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> + + <span class="group-icon group-icon-ufe"></span> Group Union for Europe + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> + + EDD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> + + <span class="group-icon group-icon-edd"></span> Group for a Europe of Democracies and Diversities + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> + + ER + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> + + <span class="group-icon group-icon-er"></span> Group of Independents for a Europe of Nations + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> + + ALDE + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> + + <span class="group-icon group-icon-alde"></span> Group of the Alliance of Liberals and Democrats for Europe + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> + + EDA + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> + + <span class="group-icon group-icon-eda"></span> Group of the European Democratic Alliance + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20People's%20Party%20(Christian%20Democrats)/'> + + EPP + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20People's%20Party%20(Christian%20Democrats)/'> + + <span class="group-icon group-icon-epp"></span> Group of the European People's Party (Christian Democrats) + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_all_committees/content b/memopol/tests/response_fixtures/GroupListTest.test_all_committees/content new file mode 100644 index 00000000..78fa76a6 --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_all_committees/content @@ -0,0 +1,530 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 23 + + + <br /> + Display : + + <a href='?active_only=1'> + current legislature only + </a> + / all data + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> + + AGRI + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> + + Committee on Agriculture and Rural Development + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> + + CONT + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> + + Committee on Budgetary Control + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> + + BUDG + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> + + Committee on Budgets + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> + + LIBE + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> + + Committee on Civil Liberties, Justice and Home Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> + + AFCO + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> + + Committee on Constitutional Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> + + CULT + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> + + Committee on Culture and Education + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Development/'> + + DEVE + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Development/'> + + Committee on Development + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> + + ECON + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> + + Committee on Economic and Monetary Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> + + EMPL + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> + + Committee on Employment and Social Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> + + PECH + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> + + Committee on Fisheries + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> + + AFET + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> + + Committee on Foreign Affairs + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> + + ITRE + + </a> + </td> + <td> + <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> + + Committee on Industry, Research and Energy + + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_all_delegations/content b/memopol/tests/response_fixtures/GroupListTest.test_all_delegations/content new file mode 100644 index 00000000..09b3506a --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_all_delegations/content @@ -0,0 +1,528 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + + <li> + <a href='?&page=3'> + 3 + + </a> + </li> + + + + + + <li> + <a href='?&page=4'> + 4 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=9'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 105 + + + <br /> + Display : + + <a href='?active_only=1'> + current legislature only + </a> + / all data + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> + + Delegation for relations with Afghanistan + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bosnia%20and%20Herzegovina,%20Serbia,%20Montenegro%20and%20Kosovo/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bosnia%20and%20Herzegovina,%20Serbia,%20Montenegro%20and%20Kosovo/'> + + Delegation for relations with Albania, Bosnia and Herzegovina, Serbia, Montenegro and Kosovo + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> + + Delegation for relations with Albania, Bulgaria and Romania + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Australia%20and%20New%20Zealand/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Australia%20and%20New%20Zealand/'> + + Delegation for relations with Australia and New Zealand + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Belarus/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Belarus/'> + + Delegation for relations with Belarus + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> + + Delegation for relations with Bosnia and Herzegovina, and Kosovo + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> + + Delegation for relations with Bulgaria and Romania + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Canada/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Canada/'> + + Delegation for relations with Canada + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Czechoslovakia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Czechoslovakia/'> + + Delegation for relations with Czechoslovakia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> + + Delegation for relations with Estonia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> + + Delegation for relations with Estonia, Lithuania and Latvia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> + + </a> + </td> + <td> + <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> + + Delegation for relations with India + + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_all_parties/content b/memopol/tests/response_fixtures/GroupListTest.test_all_parties/content new file mode 100644 index 00000000..56aab283 --- /dev/null +++ b/memopol/tests/response_fixtures/GroupListTest.test_all_parties/content @@ -0,0 +1,529 @@ +<!DOCTYPE html> +<html class="no-js" lang="en"> <!--<![endif]--> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> + <!-- Set the viewport width to device width for mobile --> + <meta name="viewport" content="width=device-width" /> + <title> + Home + - The Political Memory of </title> + + + <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> + <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> +<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> + + </head> + <body > + <!-- -load memopol_tags cache --> + + + + +<div id='header' class='container-fluid'> + <a id='logo' href='/'> + <img src='/static/collected/images/logo.png' /> + </a> + <h1> + <a id='header_banner' href='/'> + Political Memory + </a> + </h1> + <p class='organization'> + + + </p> +</div> +<div id='nav' class='container-fluid'> + <ul class='nav'> + <li> + <a href='/legislature/representative/'> + Representatives + </a> + </li> + <li> + <a href='/legislature/group/country/'> + Countries + </a> + </li> + <li> + <a href='/legislature/group/chamber/'> + Chambers + </a> + </li> + <li> + <a href='/legislature/group/group/'> + Parties + </a> + </li> + <li> + <a href='/legislature/group/delegation/'> + Delegations + </a> + </li> + <li> + <a href='/legislature/group/committee/'> + Committees + </a> + </li> + <li> + <a href='/votes/dossier/'> + Dossiers + + </a> + </li> + </ul> +</div> + + <div class="container-fluid main-container"> + + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + + <li class='active'> + <a href=''> + 1 + </a> + </li> + + + + + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + + + + + + <li> + <a href='?&page=3'> + 3 + + </a> + </li> + + + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> + + </a> + </li> + <li> + <a aria-label='Last' href='?&page=3'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> + + </a> + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 28 + + + <br /> + Display : + + <a href='?active_only=1'> + current legislature only + </a> + / all data + + + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + + + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + + + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> + + GUE/NGL + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> + + <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> + + GUE/NGL + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> + + <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left - Nordic Green Left + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/Nordic%20Green%20Left/'> + + GUE/NGL + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/Nordic%20Green%20Left/'> + + <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left/Nordic Green Left + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> + + EFDD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> + + <span class="group-icon group-icon-efdd"></span> Europe of Freedom and Direct Democracy Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> + + ENF + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> + + <span class="group-icon group-icon-enf"></span> Europe of Nations and Freedom Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> + + EFD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> + + <span class="group-icon group-icon-efd"></span> Europe of freedom and democracy Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> + + ECR + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> + + <span class="group-icon group-icon-ecr"></span> European Conservatives and Reformists Group + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> + + UFE + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> + + <span class="group-icon group-icon-ufe"></span> Group Union for Europe + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> + + EDD + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> + + <span class="group-icon group-icon-edd"></span> Group for a Europe of Democracies and Diversities + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> + + ER + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> + + <span class="group-icon group-icon-er"></span> Group of Independents for a Europe of Nations + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> + + ALDE + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> + + <span class="group-icon group-icon-alde"></span> Group of the Alliance of Liberals and Democrats for Europe + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> + + EDA + + </a> + </td> + <td> + <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> + + <span class="group-icon group-icon-eda"></span> Group of the European Democratic Alliance + + </a> + </td> + </tr> + + </table> + + + + </div> + + +<div id='footer' class='container-fluid'> + <div class='license-links'> + + Memopol is + <a href='https://github.com/political-memory/political_memory'>free software</a> + released under the terms of the + <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> + + </div> + <div class='footer-link'> + <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> + </div> + <div class='footer-link'> + <a href='http://www.memopol.org/'>Blog</a> + </div> + <div class='footer-link'> + <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> + </div> + <div class='footer-separator'></div> + <div class='footer-link'> + Developed by + <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> + </div> + <div class='footer-link'> + EP data provided by + <a href='http://parltrack.euwiki.org/'>Parltrack</a> + </div> +</div> + + </body> +</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_chambers/content b/memopol/tests/response_fixtures/GroupListTest.test_chambers/content index 79c88cae..ddcc0c32 100644 --- a/memopol/tests/response_fixtures/GroupListTest.test_chambers/content +++ b/memopol/tests/response_fixtures/GroupListTest.test_chambers/content @@ -78,27 +78,82 @@ <div class="container-fluid main-container"> - <table class='table'> + + <div class='pagination-block'> + + <nav> + <ul class='pagination pagination-sm'> + + + + </ul> + </nav> + <div class='count'> + Number of results : 1 + + + <br /> + Number of displayed results : + 12 + ( + + <a href='?paginate_by=12'> + 12 + </a> + + / + + + <a href='?paginate_by=24'> + 24 + </a> + + / + - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - - EP - - </a> - </td> - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - </tr> + <a href='?paginate_by=48'> + 48 + </a> + + / + + + <a href='?paginate_by=96'> + 96 + </a> + - </table> + ) + + </div> +</div> + + + + + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + + EP + + </a> + </td> + <td> + <a href='/legislature/representative/chamber/European%20Parliament/'> + + <span class="chamber-icon chamber-icon-ep"></span> European Parliament + + </a> + </td> + </tr> + + </table> + + </div> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_committees/content b/memopol/tests/response_fixtures/GroupListTest.test_committees/content deleted file mode 100644 index 3939576c..00000000 --- a/memopol/tests/response_fixtures/GroupListTest.test_committees/content +++ /dev/null @@ -1,638 +0,0 @@ -<!DOCTYPE html> -<html class="no-js" lang="en"> <!--<![endif]--> - <head> - <meta charset="utf-8" /> - <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> - <!-- Set the viewport width to device width for mobile --> - <meta name="viewport" content="width=device-width" /> - <title> - Home - - The Political Memory of </title> - - - <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> - <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> -<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> - - </head> - <body > - <!-- -load memopol_tags cache --> - - - - -<div id='header' class='container-fluid'> - <a id='logo' href='/'> - <img src='/static/collected/images/logo.png' /> - </a> - <h1> - <a id='header_banner' href='/'> - Political Memory - </a> - </h1> - <p class='organization'> - - - </p> -</div> -<div id='nav' class='container-fluid'> - <ul class='nav'> - <li> - <a href='/legislature/representative/'> - Representatives - </a> - </li> - <li> - <a href='/legislature/group/country/'> - Countries - </a> - </li> - <li> - <a href='/legislature/group/chamber/'> - Chambers - </a> - </li> - <li> - <a href='/legislature/group/group/'> - Parties - </a> - </li> - <li> - <a href='/legislature/group/delegation/'> - Delegations - </a> - </li> - <li> - <a href='/legislature/group/committee/'> - Committees - </a> - </li> - <li> - <a href='/votes/dossier/'> - Dossiers - - </a> - </li> - </ul> -</div> - - <div class="container-fluid main-container"> - - <table class='table'> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> - - AGRI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Agriculture%20and%20Rural%20Development/'> - - Committee on Agriculture and Rural Development - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> - - CONT - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgetary%20Control/'> - - Committee on Budgetary Control - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> - - BUDG - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Budgets/'> - - Committee on Budgets - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> - - LIBE - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Civil%20Liberties,%20Justice%20and%20Home%20Affairs/'> - - Committee on Civil Liberties, Justice and Home Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> - - AFCO - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Constitutional%20Affairs/'> - - Committee on Constitutional Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> - - CULT - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Culture%20and%20Education/'> - - Committee on Culture and Education - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> - - ECON - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Economic%20and%20Monetary%20Affairs/'> - - Committee on Economic and Monetary Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> - - EMPL - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Employment%20and%20Social%20Affairs/'> - - Committee on Employment and Social Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> - - PECH - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Fisheries/'> - - Committee on Fisheries - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> - - AFET - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Foreign%20Affairs/'> - - Committee on Foreign Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> - - ITRE - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Industry,%20Research%20and%20Energy/'> - - Committee on Industry, Research and Energy - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20International%20Trade/'> - - INTA - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20International%20Trade/'> - - Committee on International Trade - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Legal%20Affairs/'> - - JURI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Legal%20Affairs/'> - - Committee on Legal Affairs - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Petitions/'> - - PETI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Petitions/'> - - Committee on Petitions - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Regional%20Development/'> - - REGI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Regional%20Development/'> - - Committee on Regional Development - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Transport%20and%20Tourism/'> - - TRAN - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Transport%20and%20Tourism/'> - - Committee on Transport and Tourism - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Women's%20Rights%20and%20Gender%20Equality/'> - - FEMM - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20Women's%20Rights%20and%20Gender%20Equality/'> - - Committee on Women's Rights and Gender Equality - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20the%20Environment,%20Public%20Health%20and%20Food%20Safety/'> - - ENVI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20the%20Environment,%20Public%20Health%20and%20Food%20Safety/'> - - Committee on the Environment, Public Health and Food Safety - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20the%20Internal%20Market%20and%20Consumer%20Protection/'> - - IMCO - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Committee%20on%20the%20Internal%20Market%20and%20Consumer%20Protection/'> - - Committee on the Internal Market and Consumer Protection - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/committee/European%20Parliament/Subcommittee%20on%20Human%20Rights/'> - - DROI - - </a> - </td> - <td> - <a href='/legislature/representative/committee/European%20Parliament/Subcommittee%20on%20Human%20Rights/'> - - Subcommittee on Human Rights - - - </a> - </td> - </tr> - - </table> - - </div> - - -<div id='footer' class='container-fluid'> - <div class='license-links'> - - Memopol is - <a href='https://github.com/political-memory/political_memory'>free software</a> - released under the terms of the - <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> - - </div> - <div class='footer-link'> - <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> - </div> - <div class='footer-link'> - <a href='http://www.memopol.org/'>Blog</a> - </div> - <div class='footer-link'> - <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> - </div> - <div class='footer-separator'></div> - <div class='footer-link'> - Developed by - <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> - </div> - <div class='footer-link'> - EP data provided by - <a href='http://parltrack.euwiki.org/'>Parltrack</a> - </div> -</div> - - </body> -</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_country/content b/memopol/tests/response_fixtures/GroupListTest.test_country/content index b523f5e8..9a313cfc 100644 --- a/memopol/tests/response_fixtures/GroupListTest.test_country/content +++ b/memopol/tests/response_fixtures/GroupListTest.test_country/content @@ -78,522 +78,337 @@ <div class="container-fluid main-container"> - <table class='table'> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Austria/'> - - AT - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Austria/'> - - Austria - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Belgium/'> - - BE - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Belgium/'> - - Belgium - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Bulgaria/'> - - BG - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Bulgaria/'> - - Bulgaria - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Cyprus/'> - - CY - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Cyprus/'> - - Cyprus - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Czech%20Republic/'> - - CZ - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Czech%20Republic/'> - - Czech Republic - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Denmark/'> - - DK - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Denmark/'> - - Denmark - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Estonia/'> - - EE - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Estonia/'> - - Estonia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Finland/'> - - FI - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Finland/'> - - Finland + <div class='pagination-block'> - - </a> - </td> - </tr> - - <tr> + <nav> + <ul class='pagination pagination-sm'> + + - <td> - <a href='/legislature/representative/country/European%20Parliament/France/'> - - FR - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/France/'> - - France - - - </a> - </td> - </tr> - - <tr> + + <li class='active'> + <a href=''> + 1 + </a> + </li> + - <td> - <a href='/legislature/representative/country/European%20Parliament/Germany/'> - - DE - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Germany/'> - - Germany - - - </a> - </td> - </tr> - - <tr> + - <td> - <a href='/legislature/representative/country/European%20Parliament/Greece/'> - - GR - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Greece/'> - - Greece - - - </a> - </td> - </tr> - - <tr> + + <li> + <a href='?&page=2'> + 2 + + </a> + </li> + - <td> - <a href='/legislature/representative/country/European%20Parliament/Hungary/'> - - HU - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Hungary/'> - - Hungary - - - </a> - </td> - </tr> - - <tr> + - <td> - <a href='/legislature/representative/country/European%20Parliament/Ireland/'> - - IE - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Ireland/'> - - Ireland - - - </a> - </td> - </tr> - - <tr> + + <li> + <a href='?&page=3'> + 3 + + </a> + </li> + - <td> - <a href='/legislature/representative/country/European%20Parliament/Italy/'> - - IT - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Italy/'> - - Italy + + + <li> + <a aria-label='Next' href='?&page=2'> + <i aria-hidden="true" class="fa fa-chevron-right"></i> - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Latvia/'> - - LV - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Latvia/'> - - Latvia + </li> + <li> + <a aria-label='Last' href='?&page=3'> + <i aria-hidden="true" class="fa fa-chevron-circle-right"></i> - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Lithuania/'> - - LT - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Lithuania/'> - - Lithuania - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Luxembourg/'> - - LU - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Luxembourg/'> - - Luxembourg + </li> + + </ul> + </nav> + <div class='count'> + Number of results : 27 - - </a> - </td> - </tr> - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Malta/'> - - MT - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Malta/'> - - Malta - - - </a> - </td> - </tr> + <br /> + Number of displayed results : + 12 + ( - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Netherlands/'> - - NL - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Netherlands/'> - - Netherlands - - - </a> - </td> - </tr> + <a href='?paginate_by=12'> + 12 + </a> + + / + - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Poland/'> - - PL - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Poland/'> - - Poland - - - </a> - </td> - </tr> + <a href='?paginate_by=24'> + 24 + </a> + + / + - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Portugal/'> - - PT - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Portugal/'> - - Portugal - - - </a> - </td> - </tr> + <a href='?paginate_by=48'> + 48 + </a> + + / + - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Romania/'> - - RO - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Romania/'> - - Romania - - - </a> - </td> - </tr> + <a href='?paginate_by=96'> + 96 + </a> + - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Slovakia/'> - - SK - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Slovakia/'> - - Slovakia - - - </a> - </td> - </tr> + ) - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Slovenia/'> - - SI - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Slovenia/'> - - Slovenia + </div> +</div> - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Spain/'> - - ES - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Spain/'> - - Spain - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/Sweden/'> - - SE - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/Sweden/'> - - Sweden + - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/country/European%20Parliament/United%20Kingdom/'> - - GB - - </a> - </td> - <td> - <a href='/legislature/representative/country/European%20Parliament/United%20Kingdom/'> - - United Kingdom + <table class='table'> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Austria/'> + + AT + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Austria/'> + + Austria + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Belgium/'> + + BE + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Belgium/'> + + Belgium + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Bulgaria/'> + + BG + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Bulgaria/'> + + Bulgaria + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Cyprus/'> + + CY + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Cyprus/'> + + Cyprus + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Czech%20Republic/'> + + CZ + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Czech%20Republic/'> + + Czech Republic + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Denmark/'> + + DK + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Denmark/'> + + Denmark + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Estonia/'> + + EE + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Estonia/'> + + Estonia + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Finland/'> + + FI + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Finland/'> + + Finland + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/France/'> + + FR + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/France/'> + + France + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Germany/'> + + DE + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Germany/'> + + Germany + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Greece/'> + + GR + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Greece/'> + + Greece + + + </a> + </td> + </tr> + + <tr> + + <td> + <a href='/legislature/representative/country/European%20Parliament/Hungary/'> + + HU + + </a> + </td> + <td> + <a href='/legislature/representative/country/European%20Parliament/Hungary/'> + + Hungary + + + </a> + </td> + </tr> + + </table> + - - </a> - </td> - </tr> - - </table> </div> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_delegations/content b/memopol/tests/response_fixtures/GroupListTest.test_delegations/content deleted file mode 100644 index 197c2285..00000000 --- a/memopol/tests/response_fixtures/GroupListTest.test_delegations/content +++ /dev/null @@ -1,1990 +0,0 @@ -<!DOCTYPE html> -<html class="no-js" lang="en"> <!--<![endif]--> - <head> - <meta charset="utf-8" /> - <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> - <!-- Set the viewport width to device width for mobile --> - <meta name="viewport" content="width=device-width" /> - <title> - Home - - The Political Memory of </title> - - - <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> - <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> -<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> - - </head> - <body > - <!-- -load memopol_tags cache --> - - - - -<div id='header' class='container-fluid'> - <a id='logo' href='/'> - <img src='/static/collected/images/logo.png' /> - </a> - <h1> - <a id='header_banner' href='/'> - Political Memory - </a> - </h1> - <p class='organization'> - - - </p> -</div> -<div id='nav' class='container-fluid'> - <ul class='nav'> - <li> - <a href='/legislature/representative/'> - Representatives - </a> - </li> - <li> - <a href='/legislature/group/country/'> - Countries - </a> - </li> - <li> - <a href='/legislature/group/chamber/'> - Chambers - </a> - </li> - <li> - <a href='/legislature/group/group/'> - Parties - </a> - </li> - <li> - <a href='/legislature/group/delegation/'> - Delegations - </a> - </li> - <li> - <a href='/legislature/group/committee/'> - Committees - </a> - </li> - <li> - <a href='/votes/dossier/'> - Dossiers - - </a> - </li> - </ul> -</div> - - <div class="container-fluid main-container"> - - <table class='table'> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Afghanistan/'> - - Delegation for relations with Afghanistan - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Albania,%20Bulgaria%20and%20Romania/'> - - Delegation for relations with Albania, Bulgaria and Romania - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bosnia%20and%20Herzegovina,%20and%20Kosovo/'> - - Delegation for relations with Bosnia and Herzegovina, and Kosovo - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Bulgaria%20and%20Romania/'> - - Delegation for relations with Bulgaria and Romania - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia/'> - - Delegation for relations with Estonia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Estonia,%20Lithuania%20and%20Latvia/'> - - Delegation for relations with Estonia, Lithuania and Latvia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20India/'> - - Delegation for relations with India - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Israel/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Israel/'> - - Delegation for relations with Israel - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Lithuania/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Lithuania/'> - - Delegation for relations with Lithuania - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Mercosur/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Mercosur/'> - - Delegation for relations with Mercosur - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Palestine/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Palestine/'> - - Delegation for relations with Palestine - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Russia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Russia/'> - - Delegation for relations with Russia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20South%20Africa/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20South%20Africa/'> - - Delegation for relations with South Africa - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Sweden/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Sweden/'> - - Delegation for relations with Sweden - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Sweden,%20Finland,%20Iceland%20and%20the%20Nordic%20Council/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Sweden,%20Finland,%20Iceland%20and%20the%20Nordic%20Council/'> - - Delegation for relations with Sweden, Finland, Iceland and the Nordic Council - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland%20and%20Norway%20and%20to%20the%20EU-Iceland%20Joint%20Parliamentary%20Committee%20and%20the%20European%20Economic%20Area%20(EEA)%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland%20and%20Norway%20and%20to%20the%20EU-Iceland%20Joint%20Parliamentary%20Committee%20and%20the%20European%20Economic%20Area%20(EEA)%20Joint%20Parliamentary%20Committee/'> - - Delegation for relations with Switzerland and Norway and to the EU-Iceland Joint Parliamentary Committee and the European Economic Area (EEA) Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland,%20Iceland%20and%20Norway/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland,%20Iceland%20and%20Norway/'> - - Delegation for relations with Switzerland, Iceland and Norway - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland,%20Iceland%20and%20Norway%20and%20to%20the%20European%20Economic%20Area%20(EEA)%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20Switzerland,%20Iceland%20and%20Norway%20and%20to%20the%20European%20Economic%20Area%20(EEA)%20Joint%20Parliamentary%20Committee/'> - - Delegation for relations with Switzerland, Iceland and Norway and to the European Economic Area (EEA) Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Arab%20Peninsula/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Arab%20Peninsula/'> - - Delegation for relations with the Arab Peninsula - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Federative%20Republic%20of%20Brazil/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Federative%20Republic%20of%20Brazil/'> - - Delegation for relations with the Federative Republic of Brazil - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Gulf%20States,%20including%20Yemen/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Gulf%20States,%20including%20Yemen/'> - - Delegation for relations with the Gulf States, including Yemen - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Korean%20Peninsula/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Korean%20Peninsula/'> - - Delegation for relations with the Korean Peninsula - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Maghreb%20countries%20and%20the%20Arab%20Maghreb%20Union/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Maghreb%20countries%20and%20the%20Arab%20Maghreb%20Union/'> - - Delegation for relations with the Maghreb countries and the Arab Maghreb Union - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Maghreb%20countries%20and%20the%20Arab%20Maghreb%20Union%20(including%20Libya)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Maghreb%20countries%20and%20the%20Arab%20Maghreb%20Union%20(including%20Libya)/'> - - Delegation for relations with the Maghreb countries and the Arab Maghreb Union (including Libya) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries/'> - - Delegation for relations with the Mashreq countries - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries%20and%20the%20Gulf/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries%20and%20the%20Gulf/'> - - Delegation for relations with the Mashreq countries and the Gulf - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries%20and%20the%20Gulf%20States/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mashreq%20countries%20and%20the%20Gulf%20States/'> - - Delegation for relations with the Mashreq countries and the Gulf States - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN%20and%20the%20ASEAN%20Interparliamentary%20Organisation%20(AIPO)%20and%20the%20Republic%20of%20Korea/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN%20and%20the%20ASEAN%20Interparliamentary%20Organisation%20(AIPO)%20and%20the%20Republic%20of%20Korea/'> - - Delegation for relations with the Member States of ASEAN and the ASEAN Interparliamentary Organisation (AIPO) and the Republic of Korea - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN,%20South-east%20Asia%20and%20the%20Republic%20of%20Korea/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN,%20South-east%20Asia%20and%20the%20Republic%20of%20Korea/'> - - Delegation for relations with the Member States of ASEAN, South-east Asia and the Republic of Korea - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN,%20south-east%20Asia%20and%20the%20Republic%20of%20Korea/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Member%20States%20of%20ASEAN,%20south-east%20Asia%20and%20the%20Republic%20of%20Korea/'> - - Delegation for relations with the Member States of ASEAN, south-east Asia and the Republic of Korea - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mercosur%20countries/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Mercosur%20countries/'> - - Delegation for relations with the Mercosur countries - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Palestinian%20Legislative%20Council/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Palestinian%20Legislative%20Council/'> - - Delegation for relations with the Palestinian Legislative Council - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Pan-African%20Parliament/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Pan-African%20Parliament/'> - - Delegation for relations with the Pan-African Parliament - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20People's%20Republic%20of%20China/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20People's%20Republic%20of%20China/'> - - Delegation for relations with the People's Republic of China - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Republics%20of%20the%20Commonwealth%20of%20Independent%20States%20(CIS)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20Republics%20of%20the%20Commonwealth%20of%20Independent%20States%20(CIS)/'> - - Delegation for relations with the Republics of the Commonwealth of Independent States (CIS) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20United%20States/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20United%20States/'> - - Delegation for relations with the United States - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20Central%20America%20and%20Mexico/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20Central%20America%20and%20Mexico/'> - - Delegation for relations with the countries of Central America and Mexico - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20America/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20America/'> - - Delegation for relations with the countries of South America - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20America%20and%20MERCOSUR/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20America%20and%20MERCOSUR/'> - - Delegation for relations with the countries of South America and MERCOSUR - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia/'> - - Delegation for relations with the countries of South Asia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia%20and%20the%20South%20Asia%20Association%20for%20Regional%20Cooperation%20(SAARC)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia%20and%20the%20South%20Asia%20Association%20for%20Regional%20Cooperation%20(SAARC)/'> - - Delegation for relations with the countries of South Asia and the South Asia Association for Regional Cooperation (SAARC) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia%20and%20the%20South%20Asian%20Association%20for%20Regional%20Cooperation%20(SAARC)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20South%20Asia%20and%20the%20South%20Asian%20Association%20for%20Regional%20Cooperation%20(SAARC)/'> - - Delegation for relations with the countries of South Asia and the South Asian Association for Regional Cooperation (SAARC) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20Southeast%20Asia%20and%20the%20Association%20of%20Southeast%20Asian%20Nations%20(ASEAN)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20Southeast%20Asia%20and%20the%20Association%20of%20Southeast%20Asian%20Nations%20(ASEAN)/'> - - Delegation for relations with the countries of Southeast Asia and the Association of Southeast Asian Nations (ASEAN) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20south-east%20Europe/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20south-east%20Europe/'> - - Delegation for relations with the countries of south-east Europe - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20the%20Andean%20Community/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20for%20relations%20with%20the%20countries%20of%20the%20Andean%20Community/'> - - Delegation for relations with the countries of the Andean Community - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20ACP-EU%20Joint%20Parliamentary%20Assembly/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20ACP-EU%20Joint%20Parliamentary%20Assembly/'> - - Delegation to the ACP-EU Joint Parliamentary Assembly - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Cariforum%20%E2%80%94%20EU%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Cariforum%20%E2%80%94%20EU%20Parliamentary%20Committee/'> - - Delegation to the Cariforum — EU Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Cyprus%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Cyprus%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EC-Cyprus Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-European%20Economic%20Area%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-European%20Economic%20Area%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EC-European Economic Area Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Malta%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Malta%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EC-Malta Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Sweden%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EC-Sweden%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EC-Sweden Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Albania%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Albania%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - Delegation to the EU-Albania Stabilisation and Association Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Armenia%20and%20EU-Azerbaijan%20Parliamentary%20Cooperation%20Committees%20and%20the%20EU-Georgia%20Parliamentary%20Association%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Armenia%20and%20EU-Azerbaijan%20Parliamentary%20Cooperation%20Committees%20and%20the%20EU-Georgia%20Parliamentary%20Association%20Committee/'> - - Delegation to the EU-Armenia and EU-Azerbaijan Parliamentary Cooperation Committees and the EU-Georgia Parliamentary Association Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Czech%20Republic%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Czech%20Republic%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Czech Republic Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Former%20Yugoslav%20Republic%20of%20Macedonia%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Former%20Yugoslav%20Republic%20of%20Macedonia%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Former Yugoslav Republic of Macedonia Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Kazakhstan,%20EU-Kyrgyzstan%20and%20EU-Uzbekistan%20Parliamentary%20Cooperation%20Committees%20and%20Delegation%20for%20relations%20with%20Tadjikistan,%20Turkmenistan%20and%20Mongolia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Kazakhstan,%20EU-Kyrgyzstan%20and%20EU-Uzbekistan%20Parliamentary%20Cooperation%20Committees%20and%20Delegation%20for%20relations%20with%20Tadjikistan,%20Turkmenistan%20and%20Mongolia/'> - - Delegation to the EU-Kazakhstan, EU-Kyrgyzstan and EU-Uzbekistan Parliamentary Cooperation Committees and Delegation for relations with Tadjikistan, Turkmenistan and Mongolia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Kazakhstan,%20EU-Kyrgyzstan,%20EU-Uzbekistan%20and%20EU-Tajikistan%20Parliamentary%20Cooperation%20Committees%20and%20for%20relations%20with%20Turkmenistan%20and%20Mongolia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Kazakhstan,%20EU-Kyrgyzstan,%20EU-Uzbekistan%20and%20EU-Tajikistan%20Parliamentary%20Cooperation%20Committees%20and%20for%20relations%20with%20Turkmenistan%20and%20Mongolia/'> - - Delegation to the EU-Kazakhstan, EU-Kyrgyzstan, EU-Uzbekistan and EU-Tajikistan Parliamentary Cooperation Committees and for relations with Turkmenistan and Mongolia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Latvia%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Latvia%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Latvia Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Lithuania%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Lithuania%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Lithuania Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Mexico%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Mexico%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Mexico Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Moldova%20Parliamentary%20Association%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Moldova%20Parliamentary%20Association%20Committee/'> - - Delegation to the EU-Moldova Parliamentary Association Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Montenegro%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Montenegro%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - Delegation to the EU-Montenegro Stabilisation and Association Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Russia%20Parliamentary%20Cooperation%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Russia%20Parliamentary%20Cooperation%20Committee/'> - - Delegation to the EU-Russia Parliamentary Cooperation Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Serbia%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Serbia%20Stabilisation%20and%20Association%20Parliamentary%20Committee/'> - - Delegation to the EU-Serbia Stabilisation and Association Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Slovenia%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Slovenia%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Slovenia Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Sweden%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Sweden%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Sweden Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Turkey%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Turkey%20Joint%20Parliamentary%20Committee/'> - - Delegation to the EU-Turkey Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Ukraine%20Parliamentary%20Association%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20EU-Ukraine%20Parliamentary%20Association%20Committee/'> - - Delegation to the EU-Ukraine Parliamentary Association Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Euro-Latin%20American%20Parliamentary%20Assembly/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Euro-Latin%20American%20Parliamentary%20Assembly/'> - - Delegation to the Euro-Latin American Parliamentary Assembly - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Euronest%20Parliamentary%20Assembly/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Euronest%20Parliamentary%20Assembly/'> - - Delegation to the Euronest Parliamentary Assembly - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20European%20Economic%20Area%20Joint%20Parliamentary%20Committee/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20European%20Economic%20Area%20Joint%20Parliamentary%20Committee/'> - - Delegation to the European Economic Area Joint Parliamentary Committee - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20European%20Economic%20Area%20Joint%20Parliamentary%20Committee%20(EEA)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20European%20Economic%20Area%20Joint%20Parliamentary%20Committee%20(EEA)/'> - - Delegation to the European Economic Area Joint Parliamentary Committee (EEA) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Parliamentary%20Assembly%20of%20the%20Union%20for%20the%20Mediterranean/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegation%20to%20the%20Parliamentary%20Assembly%20of%20the%20Union%20for%20the%20Mediterranean/'> - - Delegation to the Parliamentary Assembly of the Union for the Mediterranean - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20and%20delegations%20for%20relations%20with%20Kazakhstan,%20Kyrgyzstan,%20Uzbekistan,%20Tajikistan,%20Turkmenistan%20and%20Mongolia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20and%20delegations%20for%20relations%20with%20Kazakhstan,%20Kyrgyzstan,%20Uzbekistan,%20Tajikistan,%20Turkmenistan%20and%20Mongolia/'> - - Delegations to the parliamentary cooperation committees and delegations for relations with Kazakhstan, Kyrgyzstan, Uzbekistan, Tajikistan, Turkmenistan and Mongolia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20and%20delegations%20for%20relations%20with%20Ukraine,%20Belarus%20and%20Moldova/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20and%20delegations%20for%20relations%20with%20Ukraine,%20Belarus%20and%20Moldova/'> - - Delegations to the parliamentary cooperation committees and delegations for relations with Ukraine, Belarus and Moldova - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20for%20relations%20with%20Armenia,%20Azerbaijan%20and%20Georgia/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Delegations%20to%20the%20parliamentary%20cooperation%20committees%20for%20relations%20with%20Armenia,%20Azerbaijan%20and%20Georgia/'> - - Delegations to the parliamentary cooperation committees for relations with Armenia, Azerbaijan and Georgia - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Members%20from%20the%20European%20Parliament%20to%20the%20Joint%20Assembly%20of%20the%20Agreement%20between%20the%20African,%20Caribbean%20and%20Pacific%20States%20and%20the%20European%20Union%20(ACP-EU)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Members%20from%20the%20European%20Parliament%20to%20the%20Joint%20Assembly%20of%20the%20Agreement%20between%20the%20African,%20Caribbean%20and%20Pacific%20States%20and%20the%20European%20Union%20(ACP-EU)/'> - - Members from the European Parliament to the Joint Assembly of the Agreement between the African, Caribbean and Pacific States and the European Union (ACP-EU) - - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Members%20from%20the%20European%20Parliament%20to%20the%20Joint%20Parliamentary%20Assembly%20of%20the%20Agreement%20between%20the%20African,%20Caribbean%20and%20Pacific%20States%20and%20the%20European%20Union%20(ACP-EU)/'> - - </a> - </td> - <td> - <a href='/legislature/representative/delegation/European%20Parliament/Members%20from%20the%20European%20Parliament%20to%20the%20Joint%20Parliamentary%20Assembly%20of%20the%20Agreement%20between%20the%20African,%20Caribbean%20and%20Pacific%20States%20and%20the%20European%20Union%20(ACP-EU)/'> - - Members from the European Parliament to the Joint Parliamentary Assembly of the Agreement between the African, Caribbean and Pacific States and the European Union (ACP-EU) - - - </a> - </td> - </tr> - - </table> - - </div> - - -<div id='footer' class='container-fluid'> - <div class='license-links'> - - Memopol is - <a href='https://github.com/political-memory/political_memory'>free software</a> - released under the terms of the - <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> - - </div> - <div class='footer-link'> - <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> - </div> - <div class='footer-link'> - <a href='http://www.memopol.org/'>Blog</a> - </div> - <div class='footer-link'> - <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> - </div> - <div class='footer-separator'></div> - <div class='footer-link'> - Developed by - <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> - </div> - <div class='footer-link'> - EP data provided by - <a href='http://parltrack.euwiki.org/'>Parltrack</a> - </div> -</div> - - </body> -</html> diff --git a/memopol/tests/response_fixtures/GroupListTest.test_parties/content b/memopol/tests/response_fixtures/GroupListTest.test_parties/content deleted file mode 100644 index 4961cfe1..00000000 --- a/memopol/tests/response_fixtures/GroupListTest.test_parties/content +++ /dev/null @@ -1,668 +0,0 @@ -<!DOCTYPE html> -<html class="no-js" lang="en"> <!--<![endif]--> - <head> - <meta charset="utf-8" /> - <link rel="icon" type="image/png" href="/static/collected/img/favicon.ico" /> - <!-- Set the viewport width to device width for mobile --> - <meta name="viewport" content="width=device-width" /> - <title> - Home - - The Political Memory of </title> - - - <link rel="stylesheet" href="/static/collected/libs/bootstrap/dist/css/bootstrap.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/fontawesome/css/font-awesome.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/libs/flag-icon-css/css/flag-icon.min.css" type="text/css" /><link rel="stylesheet" href="/static/collected/CACHE/css/base.c7d56d0a17c9.css" type="text/css" /> - <script type="text/javascript" src="/static/collected/libs/jquery/dist/jquery.js"></script> -<script type="text/javascript" src="/static/collected/libs/bootstrap/dist/js/bootstrap.js"></script> - - </head> - <body > - <!-- -load memopol_tags cache --> - - - - -<div id='header' class='container-fluid'> - <a id='logo' href='/'> - <img src='/static/collected/images/logo.png' /> - </a> - <h1> - <a id='header_banner' href='/'> - Political Memory - </a> - </h1> - <p class='organization'> - - - </p> -</div> -<div id='nav' class='container-fluid'> - <ul class='nav'> - <li> - <a href='/legislature/representative/'> - Representatives - </a> - </li> - <li> - <a href='/legislature/group/country/'> - Countries - </a> - </li> - <li> - <a href='/legislature/group/chamber/'> - Chambers - </a> - </li> - <li> - <a href='/legislature/group/group/'> - Parties - </a> - </li> - <li> - <a href='/legislature/group/delegation/'> - Delegations - </a> - </li> - <li> - <a href='/legislature/group/committee/'> - Committees - </a> - </li> - <li> - <a href='/votes/dossier/'> - Dossiers - - </a> - </li> - </ul> -</div> - - <div class="container-fluid main-container"> - - <table class='table'> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> - - GUE/NGL - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left/'> - - <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> - - GUE/NGL - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Confederal%20Group%20of%20the%20European%20United%20Left%20-%20Nordic%20Green%20Left/'> - - <span class="group-icon group-icon-guengl"></span> Confederal Group of the European United Left - Nordic Green Left - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> - - EFDD - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Freedom%20and%20Direct%20Democracy%20Group/'> - - <span class="group-icon group-icon-efdd"></span> Europe of Freedom and Direct Democracy Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> - - ENF - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20Nations%20and%20Freedom%20Group/'> - - <span class="group-icon group-icon-enf"></span> Europe of Nations and Freedom Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> - - EFD - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Europe%20of%20freedom%20and%20democracy%20Group/'> - - <span class="group-icon group-icon-efd"></span> Europe of freedom and democracy Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> - - ECR - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/European%20Conservatives%20and%20Reformists%20Group/'> - - <span class="group-icon group-icon-ecr"></span> European Conservatives and Reformists Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> - - UFE - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20Union%20for%20Europe/'> - - <span class="group-icon group-icon-ufe"></span> Group Union for Europe - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> - - EDD - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20for%20a%20Europe%20of%20Democracies%20and%20Diversities/'> - - <span class="group-icon group-icon-edd"></span> Group for a Europe of Democracies and Diversities - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> - - ER - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20Independents%20for%20a%20Europe%20of%20Nations/'> - - <span class="group-icon group-icon-er"></span> Group of Independents for a Europe of Nations - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> - - ALDE - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Alliance%20of%20Liberals%20and%20Democrats%20for%20Europe/'> - - <span class="group-icon group-icon-alde"></span> Group of the Alliance of Liberals and Democrats for Europe - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> - - EDA - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Democratic%20Alliance/'> - - <span class="group-icon group-icon-eda"></span> Group of the European Democratic Alliance - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20People's%20Party%20(Christian%20Democrats)/'> - - EPP - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20People's%20Party%20(Christian%20Democrats)/'> - - <span class="group-icon group-icon-epp"></span> Group of the European People's Party (Christian Democrats) - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Radical%20Alliance/'> - - ERA - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20European%20Radical%20Alliance/'> - - <span class="group-icon group-icon-era"></span> Group of the European Radical Alliance - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Greens/European%20Free%20Alliance/'> - - Greens/EFA - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Greens/European%20Free%20Alliance/'> - - <span class="group-icon group-icon-greensefa"></span> Group of the Greens/European Free Alliance - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'> - - SD - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'> - - <span class="group-icon group-icon-sd"></span> Group of the Progressive Alliance of Socialists and Democrats in the European Parliament - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Independence/Democracy%20Group/'> - - IND/DEM - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Independence/Democracy%20Group/'> - - <span class="group-icon group-icon-inddem"></span> Independence/Democracy Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Liberal%20and%20Democratic%20Group/'> - - LD - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Liberal%20and%20Democratic%20Group/'> - - <span class="group-icon group-icon-ld"></span> Liberal and Democratic Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Liberal%20and%20Democratic%20Reformist%20Group/'> - - LDR - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Liberal%20and%20Democratic%20Reformist%20Group/'> - - <span class="group-icon group-icon-ldr"></span> Liberal and Democratic Reformist Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Non-attached%20Members/'> - - NI - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Non-attached%20Members/'> - - <span class="group-icon group-icon-ni"></span> Non-attached Members - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Socialist%20Group/'> - - SOC - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Socialist%20Group/'> - - <span class="group-icon group-icon-soc"></span> Socialist Group - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/The%20Green%20Group%20in%20the%20European%20Parliament/'> - - Greens/EFA - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/The%20Green%20Group%20in%20the%20European%20Parliament/'> - - <span class="group-icon group-icon-greensefa"></span> The Green Group in the European Parliament - - </a> - </td> - </tr> - - <tr> - - <td> - <a href='/legislature/representative/chamber/European%20Parliament/'> - <span class="chamber-icon chamber-icon-ep"></span> European Parliament - - </a> - </td> - - <td> - <a href='/legislature/representative/group/European%20Parliament/Union%20for%20Europe%20of%20the%20Nations%20Group/'> - - UEN - - </a> - </td> - <td> - <a href='/legislature/representative/group/European%20Parliament/Union%20for%20Europe%20of%20the%20Nations%20Group/'> - - <span class="group-icon group-icon-uen"></span> Union for Europe of the Nations Group - - </a> - </td> - </tr> - - </table> - - </div> - - -<div id='footer' class='container-fluid'> - <div class='license-links'> - - Memopol is - <a href='https://github.com/political-memory/political_memory'>free software</a> - released under the terms of the - <a href='http://www.gnu.org/licenses/agpl.html'>GNU aGPLV3+</a> - - </div> - <div class='footer-link'> - <a href='https://github.com/political-memory/political_memory/issues/new'>Report a bug</a> - </div> - <div class='footer-link'> - <a href='http://www.memopol.org/'>Blog</a> - </div> - <div class='footer-link'> - <a href='http://memopol.readthedocs.io/en/master/'>Documentation</a> - </div> - <div class='footer-separator'></div> - <div class='footer-link'> - Developed by - <a href='http://www.laquadrature.net/'>La Quadrature du Net</a> - </div> - <div class='footer-link'> - EP data provided by - <a href='http://parltrack.euwiki.org/'>Parltrack</a> - </div> -</div> - - </body> -</html> diff --git a/memopol/tests/test_dossiers.py b/memopol/tests/test_dossiers.py index f87a49fd..f88f9918 100644 --- a/memopol/tests/test_dossiers.py +++ b/memopol/tests/test_dossiers.py @@ -11,6 +11,9 @@ class DossiersTest(ResponseDiffMixin, TestCase): fixtures = ['smaller_sample.json'] def test_dossier_list(self): + # session setup + self.client.get('/votes/dossier/') + # 1 query for dossier count # 1 query for dossiers # 1 query for proposals @@ -21,6 +24,9 @@ class DossiersTest(ResponseDiffMixin, TestCase): # Get 1st dossier in dataset dossier = Dossier.objects.order_by('pk')[0] + # session setup + self.client.get('/votes/dossier/%s/' % dossier.pk) + # 1 query for the dossier # 1 query for proposals # 1 query for recommendations diff --git a/memopol/tests/test_group_list.py b/memopol/tests/test_group_list.py index ba8d19a4..aef6d4ee 100644 --- a/memopol/tests/test_group_list.py +++ b/memopol/tests/test_group_list.py @@ -8,25 +8,50 @@ from .base import ResponseDiffMixin class GroupListTest(ResponseDiffMixin, TestCase): fixtures = ['smaller_sample.json'] - def group_test(self, kind, numQueries): - self.responsediff_test('/legislature/group/%s/' % kind, numQueries) + def group_test(self, kind, active_only, numQueries): + url = '/legislature/group/%s/' % kind + + # setup session variables + self.client.get('%s?active_only=%s' % (url, active_only)) + + self.responsediff_test(url, numQueries) def test_chambers(self): # 1 query for chambers - self.group_test('chamber', 1) + # 1 query for pagination + self.group_test('chamber', 1, 2) def test_country(self): # 1 query for countries - self.group_test('country', 1) + # 1 query for pagination + self.group_test('country', 1, 2) + + def test_active_parties(self): + # 1 query for political groups + # 1 query for pagination + self.group_test('group', 1, 2) - def test_parties(self): + def test_all_parties(self): # 1 query for political groups - self.group_test('group', 1) + # 1 query for pagination + self.group_test('group', 0, 2) - def test_delegations(self): + def test_active_delegations(self): # 1 query for delegations - self.group_test('delegation', 1) + # 1 query for pagination + self.group_test('delegation', 1, 2) + + def test_all_delegations(self): + # 1 query for delegations + # 1 query for pagination + self.group_test('delegation', 0, 2) + + def test_active_committees(self): + # 1 query for committees + # 1 query for pagination + self.group_test('committee', 1, 2) - def test_committees(self): + def test_all_committees(self): # 1 query for committees - self.group_test('committee', 1) + # 1 query for pagination + self.group_test('committee', 0, 2) -- GitLab