'An image attachment is created from an uploaded file.
Verifies all appropriate fields are correctly set.'

def test_create_imageattachment(self):

    with open('kitsune/upload/tests/media/test.jpg') as f:
        up_file = File(f)
        file_info = create_imageattachment({'image': up_file}, self.user, self.obj)
    image = ImageAttachment.objects.all()[0]
    check_file_info(file_info, name='test.png', width=90, height=120, delete_url=image.get_delete_url(), url=image.get_absolute_url(), thumbnail_url=image.thumbnail.url)
