@@ -74,16 +74,16 @@ def test_good_data(self):
74
74
75
75
self .assertEqual (response ['Location' ], location )
76
76
77
- self .assertQuerysetEqual (Gallery .objects .all (),
77
+ self .assertQuerySetEqual (Gallery .objects .all (),
78
78
['<Gallery: This is a test title>' ],
79
79
transform = repr )
80
- self .assertQuerysetEqual (Photo .objects .all (),
80
+ self .assertQuerySetEqual (Photo .objects .all (),
81
81
['<Photo: This is a test title 1>' ],
82
82
transform = repr )
83
83
84
84
# The photo is attached to the gallery.
85
85
gallery = Gallery .objects .get (title = 'This is a test title' )
86
- self .assertQuerysetEqual (gallery .photos .all (),
86
+ self .assertQuerySetEqual (gallery .photos .all (),
87
87
['<Photo: This is a test title 1>' ],
88
88
transform = repr )
89
89
@@ -116,10 +116,10 @@ def test_not_image(self):
116
116
response = self .client .post ('/admin/photologue/photo/upload_zip/' , test_data )
117
117
self .assertEqual (response .status_code , 302 )
118
118
119
- self .assertQuerysetEqual (Gallery .objects .all (),
119
+ self .assertQuerySetEqual (Gallery .objects .all (),
120
120
['<Gallery: This is a test title>' ],
121
121
transform = repr )
122
- self .assertQuerysetEqual (Photo .objects .all (),
122
+ self .assertQuerySetEqual (Photo .objects .all (),
123
123
['<Photo: This is a test title 1>' ],
124
124
transform = repr )
125
125
@@ -135,10 +135,10 @@ def test_ignored(self):
135
135
response = self .client .post ('/admin/photologue/photo/upload_zip/' , test_data )
136
136
self .assertEqual (response .status_code , 302 )
137
137
138
- self .assertQuerysetEqual (Gallery .objects .all (),
138
+ self .assertQuerySetEqual (Gallery .objects .all (),
139
139
['<Gallery: This is a test title>' ],
140
140
transform = repr )
141
- self .assertQuerysetEqual (Photo .objects .all (),
141
+ self .assertQuerySetEqual (Photo .objects .all (),
142
142
['<Photo: This is a test title 1>' ],
143
143
transform = repr )
144
144
@@ -153,15 +153,15 @@ def test_existing_gallery(self):
153
153
response = self .client .post ('/admin/photologue/photo/upload_zip/' , test_data )
154
154
self .assertEqual (response .status_code , 302 )
155
155
156
- self .assertQuerysetEqual (Gallery .objects .all (),
156
+ self .assertQuerySetEqual (Gallery .objects .all (),
157
157
['<Gallery: Existing>' ],
158
158
transform = repr )
159
- self .assertQuerysetEqual (Photo .objects .all (),
159
+ self .assertQuerySetEqual (Photo .objects .all (),
160
160
['<Photo: Existing 1>' ],
161
161
transform = repr )
162
162
163
163
# The photo is attached to the existing gallery.
164
- self .assertQuerysetEqual (existing_gallery .photos .all (),
164
+ self .assertQuerySetEqual (existing_gallery .photos .all (),
165
165
['<Photo: Existing 1>' ],
166
166
transform = repr )
167
167
@@ -177,7 +177,7 @@ def test_existing_gallery_custom_title(self):
177
177
response = self .client .post ('/admin/photologue/photo/upload_zip/' , test_data )
178
178
self .assertEqual (response .status_code , 302 )
179
179
180
- self .assertQuerysetEqual (Photo .objects .all (),
180
+ self .assertQuerySetEqual (Photo .objects .all (),
181
181
['<Photo: Custom title 1>' ],
182
182
transform = repr )
183
183
@@ -191,7 +191,7 @@ def test_duplicate_slug(self):
191
191
response = self .client .post ('/admin/photologue/photo/upload_zip/' , test_data )
192
192
self .assertEqual (response .status_code , 302 )
193
193
194
- self .assertQuerysetEqual (Photo .objects .all (),
194
+ self .assertQuerySetEqual (Photo .objects .all (),
195
195
[
196
196
'<Photo: This is a test title 1>' ,
197
197
'<Photo: This is a test title 2>' ,
0 commit comments