def assert_cannot_view(obj): """Assert that current user cannot view object via UI""" selenium_utils.open_url(obj.url) assert ui_utils.is_error_403()