def test_get_set_config(self):
"""
Test getting and setting the config attribute
"""
usrmgr = self.__get_dummy_object()
config = {"hello": {}, "world": {}}
with patch.object(usrmgr, "_UserManager__save_config"):
usrmgr.config = config
with patch.object(usrmgr, "_UserManager__load_config"):
self.assertEqual(usrmgr.config, config)
评论列表
文章目录