@@ -15,15 +15,15 @@ class TestPagination(BunqSdkTestCase):
15
15
_PAGINATION_COUNT_CUSTOM = 5
16
16
17
17
def test_get_url_params_count_only (self ):
18
- pagination = self .create_pagination_with_all_properties_set ()
18
+ pagination = self ._create_pagination_with_all_properties_set ()
19
19
url_params_count_only_expected = {
20
20
client .Pagination .PARAM_COUNT : str (self ._PAGINATION_COUNT_CUSTOM ),
21
21
}
22
22
23
23
self .assertEqual (url_params_count_only_expected ,
24
24
pagination .url_params_count_only )
25
25
26
- def create_pagination_with_all_properties_set (self ):
26
+ def _create_pagination_with_all_properties_set (self ):
27
27
"""
28
28
:rtype: Pagination
29
29
"""
@@ -37,7 +37,7 @@ def create_pagination_with_all_properties_set(self):
37
37
return pagination
38
38
39
39
def test_get_url_params_previous_page (self ):
40
- pagination = self .create_pagination_with_all_properties_set ()
40
+ pagination = self ._create_pagination_with_all_properties_set ()
41
41
url_params_previous_page_expected = {
42
42
client .Pagination .PARAM_COUNT : str (self ._PAGINATION_COUNT_CUSTOM ),
43
43
client .Pagination .PARAM_OLDER_ID :
@@ -49,7 +49,7 @@ def test_get_url_params_previous_page(self):
49
49
pagination .url_params_previous_page )
50
50
51
51
def test_get_url_params_previous_page_no_count (self ):
52
- pagination = self .create_pagination_with_all_properties_set ()
52
+ pagination = self ._create_pagination_with_all_properties_set ()
53
53
pagination .count = None
54
54
url_params_previous_page_expected = {
55
55
client .Pagination .PARAM_OLDER_ID :
@@ -61,7 +61,7 @@ def test_get_url_params_previous_page_no_count(self):
61
61
pagination .url_params_previous_page )
62
62
63
63
def test_get_url_params_next_page_newer (self ):
64
- pagination = self .create_pagination_with_all_properties_set ()
64
+ pagination = self ._create_pagination_with_all_properties_set ()
65
65
url_params_next_page_expected = {
66
66
client .Pagination .PARAM_COUNT : str (self ._PAGINATION_COUNT_CUSTOM ),
67
67
client .Pagination .PARAM_NEWER_ID :
@@ -73,7 +73,7 @@ def test_get_url_params_next_page_newer(self):
73
73
pagination .url_params_next_page )
74
74
75
75
def test_get_url_params_next_page_newer_no_count (self ):
76
- pagination = self .create_pagination_with_all_properties_set ()
76
+ pagination = self ._create_pagination_with_all_properties_set ()
77
77
pagination .count = None
78
78
url_params_next_page_expected = {
79
79
client .Pagination .PARAM_NEWER_ID :
@@ -85,7 +85,7 @@ def test_get_url_params_next_page_newer_no_count(self):
85
85
pagination .url_params_next_page )
86
86
87
87
def test_get_url_params_next_page_future (self ):
88
- pagination = self .create_pagination_with_all_properties_set ()
88
+ pagination = self ._create_pagination_with_all_properties_set ()
89
89
pagination .newer_id = None
90
90
url_params_next_page_expected = {
91
91
client .Pagination .PARAM_COUNT : str (self ._PAGINATION_COUNT_CUSTOM ),
@@ -98,7 +98,7 @@ def test_get_url_params_next_page_future(self):
98
98
pagination .url_params_next_page )
99
99
100
100
def test_get_url_params_next_page_future_no_count (self ):
101
- pagination = self .create_pagination_with_all_properties_set ()
101
+ pagination = self ._create_pagination_with_all_properties_set ()
102
102
pagination .newer_id = None
103
103
pagination .count = None
104
104
url_params_next_page_expected = {
@@ -111,7 +111,7 @@ def test_get_url_params_next_page_future_no_count(self):
111
111
pagination .url_params_next_page )
112
112
113
113
def test_get_url_params_prev_page_from_pagination_with_no_prev_page (self ):
114
- pagination = self .create_pagination_with_all_properties_set ()
114
+ pagination = self ._create_pagination_with_all_properties_set ()
115
115
pagination .older_id = None
116
116
117
117
def access_url_params_previous_page ():
@@ -122,7 +122,7 @@ def access_url_params_previous_page():
122
122
access_url_params_previous_page )
123
123
124
124
def test_get_url_params_next_page_from_pagination_with_no_next_page (self ):
125
- pagination = self .create_pagination_with_all_properties_set ()
125
+ pagination = self ._create_pagination_with_all_properties_set ()
126
126
pagination .newer_id = None
127
127
pagination .future_id = None
128
128
0 commit comments