milki/dulwich — comment on commit 2c7b4058dcb2d4513044a768ad04ebd353501428
File: dulwich/tests/test_index.py line 222
By jelmer:

This test is hard to follow and complex because it uses a repository with existing data. It would be much simpler to just populate a new repository here with a couple of files (perhaps two files in a directory, one in the root, and a symlink?), then do the checkout and then verify that the index and the files written are what you expect.