zephyrhealth/edge-weight-scoring — pull request #1 by zephyr-glen (2012-09-10 20:54:57+00:00)
Title: Extend test suite

Hi Karl,

I've made the following changes to the tests:

1. Fixed failing tests
2. Extended test coverage to 100%
3. Added more flexible parameterised testing using data providers

It's the third part that's most interesting: for each test, you'll see I've added a generic test and a provider method which can be used to verify scores. This means we can inject new test data without having to add a load of duplicated test code. Just drop a new array into the provider structure.

The EducationTest is a good example of this, as I've added a few more test cases for different education types.

Let me know if you have any questions or comments!

/cc @KarlPurk