Test cases for method that returns a view's attributes