I think the indentation is correct. This is not a blok of code but a continuation of the line `assert_permissions( ...` so it is correctly indented by 4 spaces as the convention of line continuations.