We merged this https://github.com/knaperek/djangosaml2/pull/233 and fixed the indentation errors, unit tests now works fine but we should have a valid test for this feature. @vgiralt that would be for you if you agree