COSMIT clean up tests with pyflakes

test_ridge.py contained two duplicate functions.