For compliance reasons, there is sometimes a need to ensure that all or some views have to have certain attributes or behaviours. I want to add tests to ensure that this is enforced, and more importantly, that it will be enforced against future views added by other devs.
I need to be able to do something like
def test_compliance_thing():
for all possible views
assert hasattr(view, 'some_compliance_thing')