updated people_test.py: refactored the existing test so it properly tests some data (searching and validating for "John C Ramirez"), and added two tests for the cases of (1) not finding anybody with a given name and (2) a search returning too many people matching the criteria
updated people.py: changed the return message for the two error cases above. Instead of just returning an empty list regardless, it now returns a more descriptive message for each case.
Testing
all three tests pass using the nose setup outlined in the README
Changes
people_test.py
: refactored the existing test so it properly tests some data (searching and validating for "John C Ramirez"), and added two tests for the cases of (1) not finding anybody with a given name and (2) a search returning too many people matching the criteriapeople.py
: changed the return message for the two error cases above. Instead of just returning an empty list regardless, it now returns a more descriptive message for each case.Testing
nose
setup outlined in the README