openplanets/fido — pull request #31 by edsu (2012-08-27 15:23:16+00:00)
Title: test harness and api changes

I don't know if these changes will be too substantial for you, but I've refactored the Fido class and module to support the development of a test suite, which I have also begun.

The majority of the changes involved making it easy to instantiate a Fido class without having to also do all the stuff that was going on in main. I also removed the printing from the Fido class and put it into main.

Another significant change I made was introducing a new method identify_files which is a generator that lazily returns all matches, walking inside of zip file containers. identify_file now just returns a single identity.

The big thing with this pull request IMHO is the tests. I plan on improving them, so maybe it's worth taking a look?

PS. I turned the README.txt into a README.md for pretty display on Github :-)