Nit-picky, you might want to add an assertion that the file is in fact smaller than CHECKSUM_CHUNK_SIZE in order to maintain the vailidity of the test in the event the value changes. Probably not needed since I doubt the value would ever be that small; this is admittedly a very purist, theoretical suggestion.