def METHOD_NAME(topic_file_upload_factory, DocumentCSV):
    topic_file = topic_file_upload_factory(document=DocumentCSV)
    with pytest.raises(Exception) as e:
        topic_file.full_clean()
    assert 'Unsupported file format.' in str(e.value)
    topic_file.delete()