'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_attachment()
    attachment = self.article.shared_plugins_set.all()[0].attachment
    self.assertEqual(attachment.original_filename, u'test.txt')
    self.assertEqual(attachment.current_revision.file.file.read(), self.test_data.encode(u'utf-8'))
