[tor-commits] [stem/master] Moving test filter to helper function