def test_user_is_in_group_username(self):
"""
Test user is in group check if username is passed
"""
usrmgr = self.__get_dummy_object()
config = {"foogroup": {"unverified": ["@foo"]}}
self.__set_config(usrmgr, config)
with patch.object(usrmgr, "_UserManager__load_config"):
result = usrmgr.user_is_in_group("foogroup", username="@foo")
self.assertTrue(result)
评论列表
文章目录