'Tests that simple file upload uploads correctly
Uploading a file should preserve the original filename.
Uploading should not modify file in any way.'

def test_upload(self):

    self._create_test_image(u'')
    image = models.Image.objects.get()
    image_revision = image.current_revision.imagerevision
    self.assertEqual(image_revision.get_filename(), u'test.gif')
    self.assertEqual(image_revision.image.file.read(), base64.b64decode(self.test_data))
