File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def test_api_users_list_query_email_with_internationalized_domain_names():
8787 client .force_login (user )
8888
8989 jean = factories .UserFactory (email = "jean.martin@éducation.fr" )
90+ marie = factories .UserFactory (email = "marie.durand@education.fr" )
9091 kurokawa = factories .UserFactory (email = "contact@黒川.日本" )
9192
9293 response = client .get ("/api/v1.0/users/?q=jean.martin@education.fr" )
@@ -99,6 +100,16 @@ def test_api_users_list_query_email_with_internationalized_domain_names():
99100 user_ids = [user ["id" ] for user in response .json ()]
100101 assert user_ids == [str (jean .id )]
101102
103+ response = client .get ("/api/v1.0/users/?q=marie.durand@education.fr" )
104+ assert response .status_code == 200
105+ user_ids = [user ["id" ] for user in response .json ()]
106+ assert user_ids == [str (marie .id )]
107+
108+ response = client .get ("/api/v1.0/users/?q=marie.durand@éducation.fr" )
109+ assert response .status_code == 200
110+ user_ids = [user ["id" ] for user in response .json ()]
111+ assert user_ids == [str (marie .id )]
112+
102113 response = client .get ("/api/v1.0/users/?q=contact@黒川.日本" )
103114 assert response .status_code == 200
104115 user_ids = [user ["id" ] for user in response .json ()]
You can’t perform that action at this time.
0 commit comments