I guess I don't really get the code clutter argument: having a more generic function would be less clear IMO since the behavior is so tight to what the test does.