Ticket #13750: 13750_tests.txt

File 13750_tests.txt, 34.1 KB (added by Aksel, 9 years ago)

Results of tests with simple solution

Line 
1Creating test database for alias 'default'...
2Creating test database for alias 'other'...
3.......................E..EEEE...EFEEE..EEEEEE.E.EE..EEEEE..EEEEE..EE................................................................................................................................
4======================================================================
5ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldDimensionsFirstTests)
6----------------------------------------------------------------------
7Traceback (most recent call last):
8 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None
9 self.check_dimensions(p, None, None)
10 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
11 field = getattr(instance, field_name)
12 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
13 file.open()
14 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
15 super(TestImageFieldFile, self).open()
16 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
17 self._require_file()
18 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
19 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
20ValueError: The 'mugshot' attribute has no file associated with it.
21
22======================================================================
23ERROR: test_default_value (model_fields.test_imagefield.ImageFieldDimensionsFirstTests)
24----------------------------------------------------------------------
25Traceback (most recent call last):
26 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value
27 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
28 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
29 file.open()
30 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
31 super(TestImageFieldFile, self).open()
32 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
33 self._require_file()
34 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
35 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
36ValueError: The 'mugshot' attribute has no file associated with it.
37
38======================================================================
39ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldDimensionsFirstTests)
40----------------------------------------------------------------------
41Traceback (most recent call last):
42 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions
43 p.mugshot.save("mug", self.file1)
44 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
45 file.open()
46 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
47 super(TestImageFieldFile, self).open()
48 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
49 self._require_file()
50 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
51 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
52ValueError: The 'mugshot' attribute has no file associated with it.
53
54======================================================================
55ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldDimensionsFirstTests)
56----------------------------------------------------------------------
57Traceback (most recent call last):
58 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods
59 p.mugshot.save("mug", self.file1)
60 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
61 file.open()
62 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
63 super(TestImageFieldFile, self).open()
64 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
65 self._require_file()
66 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
67 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
68ValueError: The 'mugshot' attribute has no file associated with it.
69
70======================================================================
71ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests)
72----------------------------------------------------------------------
73Traceback (most recent call last):
74 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor
75 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
76 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
77 file.open()
78 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
79 super(TestImageFieldFile, self).open()
80 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
81 self._require_file()
82 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
83 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
84ValueError: The 'mugshot' attribute has no file associated with it.
85
86======================================================================
87ERROR: test_default_value (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
88----------------------------------------------------------------------
89Traceback (most recent call last):
90 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 245, in test_default_value
91 self.assertEqual(bool(p.mugshot), False)
92 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
93 file.open()
94 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
95 super(TestImageFieldFile, self).open()
96 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
97 self._require_file()
98 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
99 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
100ValueError: The 'mugshot' attribute has no file associated with it.
101
102======================================================================
103ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
104----------------------------------------------------------------------
105Traceback (most recent call last):
106 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 277, in test_field_save_and_delete_methods
107 self.check_dimensions(p, None, None)
108 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
109 field = getattr(instance, field_name)
110 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
111 file.open()
112 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
113 super(TestImageFieldFile, self).open()
114 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
115 self._require_file()
116 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
117 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
118ValueError: The 'mugshot' attribute has no file associated with it.
119
120======================================================================
121ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
122----------------------------------------------------------------------
123Traceback (most recent call last):
124 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 223, in test_image_after_constructor
125 self.assertEqual(bool(p.mugshot), False)
126 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
127 file.open()
128 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
129 super(TestImageFieldFile, self).open()
130 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
131 self._require_file()
132 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
133 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
134ValueError: The 'mugshot' attribute has no file associated with it.
135
136======================================================================
137ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldOneDimensionTests)
138----------------------------------------------------------------------
139Traceback (most recent call last):
140 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None
141 self.check_dimensions(p, None, None)
142 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
143 field = getattr(instance, field_name)
144 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
145 file.open()
146 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
147 super(TestImageFieldFile, self).open()
148 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
149 self._require_file()
150 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
151 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
152ValueError: The 'mugshot' attribute has no file associated with it.
153
154======================================================================
155ERROR: test_default_value (model_fields.test_imagefield.ImageFieldOneDimensionTests)
156----------------------------------------------------------------------
157Traceback (most recent call last):
158 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value
159 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
160 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
161 file.open()
162 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
163 super(TestImageFieldFile, self).open()
164 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
165 self._require_file()
166 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
167 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
168ValueError: The 'mugshot' attribute has no file associated with it.
169
170======================================================================
171ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldOneDimensionTests)
172----------------------------------------------------------------------
173Traceback (most recent call last):
174 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions
175 p.mugshot.save("mug", self.file1)
176 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
177 file.open()
178 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
179 super(TestImageFieldFile, self).open()
180 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
181 self._require_file()
182 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
183 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
184ValueError: The 'mugshot' attribute has no file associated with it.
185
186======================================================================
187ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldOneDimensionTests)
188----------------------------------------------------------------------
189Traceback (most recent call last):
190 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods
191 p.mugshot.save("mug", self.file1)
192 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
193 file.open()
194 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
195 super(TestImageFieldFile, self).open()
196 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
197 self._require_file()
198 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
199 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
200ValueError: The 'mugshot' attribute has no file associated with it.
201
202======================================================================
203ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests)
204----------------------------------------------------------------------
205Traceback (most recent call last):
206 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor
207 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
208 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
209 file.open()
210 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
211 super(TestImageFieldFile, self).open()
212 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
213 self._require_file()
214 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
215 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
216ValueError: The 'mugshot' attribute has no file associated with it.
217
218======================================================================
219ERROR: test_delete_when_missing (model_fields.test_imagefield.ImageFieldTests)
220----------------------------------------------------------------------
221Traceback (most recent call last):
222 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 147, in test_delete_when_missing
223 p.mugshot.save("shot", self.file1)
224 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
225 file.open()
226 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
227 super(TestImageFieldFile, self).open()
228 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
229 self._require_file()
230 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
231 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
232ValueError: The 'mugshot' attribute has no file associated with it.
233
234======================================================================
235ERROR: test_equal_notequal_hash (model_fields.test_imagefield.ImageFieldTests)
236----------------------------------------------------------------------
237Traceback (most recent call last):
238 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 113, in test_equal_notequal_hash
239 p1.mugshot.save("mug", self.file1)
240 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
241 file.open()
242 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
243 super(TestImageFieldFile, self).open()
244 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
245 self._require_file()
246 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
247 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
248ValueError: The 'mugshot' attribute has no file associated with it.
249
250======================================================================
251ERROR: test_instantiate_missing (model_fields.test_imagefield.ImageFieldTests)
252----------------------------------------------------------------------
253Traceback (most recent call last):
254 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 135, in test_instantiate_missing
255 p.mugshot.save("shot", self.file1)
256 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
257 file.open()
258 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
259 super(TestImageFieldFile, self).open()
260 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
261 self._require_file()
262 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
263 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
264ValueError: The 'mugshot' attribute has no file associated with it.
265
266======================================================================
267ERROR: test_size_method (model_fields.test_imagefield.ImageFieldTests)
268----------------------------------------------------------------------
269Traceback (most recent call last):
270 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 156, in test_size_method
271 p.mugshot.save("shot", self.file1)
272 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
273 file.open()
274 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
275 super(TestImageFieldFile, self).open()
276 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
277 self._require_file()
278 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
279 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
280ValueError: The 'mugshot' attribute has no file associated with it.
281
282======================================================================
283ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldTwoDimensionsTests)
284----------------------------------------------------------------------
285Traceback (most recent call last):
286 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None
287 self.check_dimensions(p, None, None)
288 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
289 field = getattr(instance, field_name)
290 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
291 file.open()
292 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
293 super(TestImageFieldFile, self).open()
294 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
295 self._require_file()
296 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
297 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
298ValueError: The 'mugshot' attribute has no file associated with it.
299
300======================================================================
301ERROR: test_default_value (model_fields.test_imagefield.ImageFieldTwoDimensionsTests)
302----------------------------------------------------------------------
303Traceback (most recent call last):
304 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value
305 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
306 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
307 file.open()
308 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
309 super(TestImageFieldFile, self).open()
310 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
311 self._require_file()
312 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
313 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
314ValueError: The 'mugshot' attribute has no file associated with it.
315
316======================================================================
317ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldTwoDimensionsTests)
318----------------------------------------------------------------------
319Traceback (most recent call last):
320 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions
321 p.mugshot.save("mug", self.file1)
322 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
323 file.open()
324 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
325 super(TestImageFieldFile, self).open()
326 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
327 self._require_file()
328 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
329 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
330ValueError: The 'mugshot' attribute has no file associated with it.
331
332======================================================================
333ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldTwoDimensionsTests)
334----------------------------------------------------------------------
335Traceback (most recent call last):
336 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods
337 p.mugshot.save("mug", self.file1)
338 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
339 file.open()
340 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
341 super(TestImageFieldFile, self).open()
342 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
343 self._require_file()
344 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
345 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
346ValueError: The 'mugshot' attribute has no file associated with it.
347
348======================================================================
349ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests)
350----------------------------------------------------------------------
351Traceback (most recent call last):
352 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor
353 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
354 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
355 file.open()
356 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
357 super(TestImageFieldFile, self).open()
358 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
359 self._require_file()
360 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
361 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
362ValueError: The 'mugshot' attribute has no file associated with it.
363
364======================================================================
365ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldUsingFileTests)
366----------------------------------------------------------------------
367Traceback (most recent call last):
368 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None
369 self.check_dimensions(p, None, None)
370 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
371 field = getattr(instance, field_name)
372 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
373 file.open()
374 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
375 super(TestImageFieldFile, self).open()
376 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
377 self._require_file()
378 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
379 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
380ValueError: The 'mugshot' attribute has no file associated with it.
381
382======================================================================
383ERROR: test_default_value (model_fields.test_imagefield.ImageFieldUsingFileTests)
384----------------------------------------------------------------------
385Traceback (most recent call last):
386 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value
387 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
388 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
389 file.open()
390 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
391 super(TestImageFieldFile, self).open()
392 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
393 self._require_file()
394 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
395 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
396ValueError: The 'mugshot' attribute has no file associated with it.
397
398======================================================================
399ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldUsingFileTests)
400----------------------------------------------------------------------
401Traceback (most recent call last):
402 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions
403 p.mugshot.save("mug", self.file1)
404 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
405 file.open()
406 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
407 super(TestImageFieldFile, self).open()
408 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
409 self._require_file()
410 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
411 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
412ValueError: The 'mugshot' attribute has no file associated with it.
413
414======================================================================
415ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldUsingFileTests)
416----------------------------------------------------------------------
417Traceback (most recent call last):
418 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods
419 p.mugshot.save("mug", self.file1)
420 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
421 file.open()
422 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
423 super(TestImageFieldFile, self).open()
424 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
425 self._require_file()
426 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
427 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
428ValueError: The 'mugshot' attribute has no file associated with it.
429
430======================================================================
431ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests)
432----------------------------------------------------------------------
433Traceback (most recent call last):
434 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor
435 self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True)
436 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
437 file.open()
438 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
439 super(TestImageFieldFile, self).open()
440 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
441 self._require_file()
442 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
443 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
444ValueError: The 'mugshot' attribute has no file associated with it.
445
446======================================================================
447ERROR: test_assignment (model_fields.test_imagefield.TwoImageFieldTests)
448----------------------------------------------------------------------
449Traceback (most recent call last):
450 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 376, in test_assignment
451 self.check_dimensions(p, None, None, 'mugshot')
452 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions
453 field = getattr(instance, field_name)
454 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
455 file.open()
456 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
457 super(TestImageFieldFile, self).open()
458 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
459 self._require_file()
460 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
461 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
462ValueError: The 'mugshot' attribute has no file associated with it.
463
464======================================================================
465ERROR: test_dimensions (model_fields.test_imagefield.TwoImageFieldTests)
466----------------------------------------------------------------------
467Traceback (most recent call last):
468 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 419, in test_dimensions
469 p.mugshot.save("mug", self.file1)
470 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
471 file.open()
472 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
473 super(TestImageFieldFile, self).open()
474 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
475 self._require_file()
476 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
477 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
478ValueError: The 'mugshot' attribute has no file associated with it.
479
480======================================================================
481ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.TwoImageFieldTests)
482----------------------------------------------------------------------
483Traceback (most recent call last):
484 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 396, in test_field_save_and_delete_methods
485 p.mugshot.save("mug", self.file1)
486 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__
487 file.open()
488 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open
489 super(TestImageFieldFile, self).open()
490 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open
491 self._require_file()
492 File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file
493 raise ValueError("The '%s' attribute has no file associated with it." % self.field.name)
494ValueError: The 'mugshot' attribute has no file associated with it.
495
496======================================================================
497FAIL: test_dimensions (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
498----------------------------------------------------------------------
499Traceback (most recent call last):
500 File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 303, in test_dimensions
501 self.assertEqual(p.mugshot.was_opened, False)
502AssertionError: True != False
503
504----------------------------------------------------------------------
505Ran 197 tests in 0.206s
506
507FAILED (failures=1, errors=30)
508Destroying test database for alias 'default'...
509Destroying test database for alias 'other'.
Back to Top