tests: Update to Django new 'duplicate file' mechanism.