bendmorris/neon_portal — pull request #2 by ethanwhite (2012-11-13 20:41:50+00:00)
Title: Get the taxresolve tests working

1. Fixed some remaining issues in tax_resolve_fuzzy. Most notably that it would always cache a result, but only return something if match was found. This meant that they result was different between the first time the function was run and any subsequent runs of the function. I chose to return the result that was being cached (i.e., the name it was pass if there was not match), but am open to the alternative - not caching if there isn't a match.
2. Switch to testing tax_resolve_fuzzy() since that was clearly the target of existing tests
3. Use Nose instead of UnitTests because that's where I know now to deal with multiple tests properly
4. Run loops over test values so that each pass through the loop executes as a separate test
5. Decrease sensitivity on tests with too few characters to achieve a match using the default
6. Remove some tests that couldn't pass due to the limits of the fuzzy matching when both typos and Genus changes are involved or because there were too many changes given the length of the test case for reasonable levels of sensistivity.