@@ -55,14 +55,14 @@ def test_update_user(self):
55
55
'cn' : ('John' , ),
56
56
'sn' : ('Doe' , ),
57
57
}
58
- backend .update_user (user , attributes , attribute_mapping )
58
+ backend ._update_user (user , attributes , attribute_mapping )
59
59
self .
assertEqual (
user .
email ,
'[email protected] ' )
60
60
self .assertEqual (user .first_name , 'John' )
61
61
self .assertEqual (user .last_name , 'Doe' )
62
62
63
63
attribute_mapping ['saml_age' ] = ('age' , )
64
64
attributes ['saml_age' ] = ('22' , )
65
- backend .update_user (user , attributes , attribute_mapping )
65
+ backend ._update_user (user , attributes , attribute_mapping )
66
66
self .assertEqual (user .age , '22' )
67
67
68
68
def test_update_user_callable_attributes (self ):
@@ -81,7 +81,7 @@ def test_update_user_callable_attributes(self):
81
81
'cn' : ('John' , ),
82
82
'sn' : ('Doe' , ),
83
83
}
84
- backend .update_user (user , attributes , attribute_mapping )
84
+ backend ._update_user (user , attributes , attribute_mapping )
85
85
self .
assertEqual (
user .
email ,
'[email protected] ' )
86
86
self .assertEqual (user .first_name , 'John' )
87
87
self .assertEqual (user .last_name , 'Doe' )
@@ -103,7 +103,7 @@ def test_update_user_empty_attribute(self):
103
103
'sn' : (),
104
104
}
105
105
with self .assertLogs ('djangosaml2' , level = 'DEBUG' ) as logs :
106
- backend .update_user (user , attributes , attribute_mapping )
106
+ backend ._update_user (user , attributes , attribute_mapping )
107
107
self .
assertEqual (
user .
email ,
'[email protected] ' )
108
108
self .assertEqual (user .first_name , 'John' )
109
109
# empty attribute list: no update
0 commit comments