I'm not sure if this is a good idea or a bad idea.  On the one hand it makes test code a little too fancy, on the other hand it reduces the reluctance to write tests for views.