test_representative_positions.py 700 Bytes
Newer Older
1
2
3
4
5
6
7
8
from .base import RepresentativeBaseTest


class RepresentativePositionsTest(RepresentativeBaseTest):
    tab = 'positions'

    """
    - One for positions
9
10
    - One for position scores
    - One for position themes
Nicolas Joyard's avatar
Nicolas Joyard committed
11
    - One for position representatives
12
    """
Nicolas Joyard's avatar
Nicolas Joyard committed
13
    queries = RepresentativeBaseTest.queries + 4
14
15
16
17
18
19
20
21
22

    def test_queries(self):
        self.do_query_test()

    def test_position_buttons(self):
        self.selector_test('.position-button')

    def test_position_details(self):
        self.selector_test('.position-details')
23
24

    def test_no_positions(self):
Nicolas Joyard's avatar
Nicolas Joyard committed
25
        url = '/representatives/francois-asensi-1945-06-01/%s/'
26
        self.selector_test('.no-positions', url % self.tab)