This is not a good name for a function. 
First of all, with that name it could be automatically picked up by `nosetests`. 
Secondly, if something is called "test" I'd expect it to raise an error if the test fails. Not return false. 

A better name would be `is_valid_selector` perhaps.