Creating test database for alias 'default'... Creating test database for alias 'other'... .......................E..EEEE...EFEEE..EEEEEE.E.EE..EEEEE..EEEEE..EE................................................................................................................................ ====================================================================== ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldDimensionsFirstTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None self.check_dimensions(p, None, None) File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_default_value (model_fields.test_imagefield.ImageFieldDimensionsFirstTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldDimensionsFirstTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldDimensionsFirstTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_default_value (model_fields.test_imagefield.ImageFieldNoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 245, in test_default_value self.assertEqual(bool(p.mugshot), False) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldNoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 277, in test_field_save_and_delete_methods self.check_dimensions(p, None, None) File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 223, in test_image_after_constructor self.assertEqual(bool(p.mugshot), False) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldOneDimensionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None self.check_dimensions(p, None, None) File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_default_value (model_fields.test_imagefield.ImageFieldOneDimensionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldOneDimensionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldOneDimensionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_delete_when_missing (model_fields.test_imagefield.ImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 147, in test_delete_when_missing p.mugshot.save("shot", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_equal_notequal_hash (model_fields.test_imagefield.ImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 113, in test_equal_notequal_hash p1.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_instantiate_missing (model_fields.test_imagefield.ImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 135, in test_instantiate_missing p.mugshot.save("shot", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_size_method (model_fields.test_imagefield.ImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 156, in test_size_method p.mugshot.save("shot", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldTwoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None self.check_dimensions(p, None, None) File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_default_value (model_fields.test_imagefield.ImageFieldTwoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldTwoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldTwoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldUsingFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 256, in test_assignment_to_None self.check_dimensions(p, None, None) File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_default_value (model_fields.test_imagefield.ImageFieldUsingFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 244, in test_default_value self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_dimensions (model_fields.test_imagefield.ImageFieldUsingFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 286, in test_dimensions p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldUsingFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 267, in test_field_save_and_delete_methods p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_image_after_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 222, in test_image_after_constructor self.assertEqual(isinstance(p.mugshot, TestImageFieldFile), True) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_assignment (model_fields.test_imagefield.TwoImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 376, in test_assignment self.check_dimensions(p, None, None, 'mugshot') File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 80, in check_dimensions field = getattr(instance, field_name) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_dimensions (model_fields.test_imagefield.TwoImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 419, in test_dimensions p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== ERROR: test_field_save_and_delete_methods (model_fields.test_imagefield.TwoImageFieldTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 396, in test_field_save_and_delete_methods p.mugshot.save("mug", self.file1) File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 224, in __get__ file.open() File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/models.py", line 233, in open super(TestImageFieldFile, self).open() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 80, in open self._require_file() File "/Users/aethem/Documents/SWTR/django-repo/django/db/models/fields/files.py", line 46, in _require_file raise ValueError("The '%s' attribute has no file associated with it." % self.field.name) ValueError: The 'mugshot' attribute has no file associated with it. ====================================================================== FAIL: test_dimensions (model_fields.test_imagefield.ImageFieldNoDimensionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/aethem/Documents/SWTR/django-repo/tests/model_fields/test_imagefield.py", line 303, in test_dimensions self.assertEqual(p.mugshot.was_opened, False) AssertionError: True != False ---------------------------------------------------------------------- Ran 197 tests in 0.206s FAILED (failures=1, errors=30) Destroying test database for alias 'default'... Destroying test database for alias 'other'.