示例#1
0
文件: tests.py 项目: ptrus/findtofun
 def test_change_textfields(self):
     user = FbUser.objects.create(uid=1, sex="Male")
     user_data = dict(sex="Female")
     modified_attrs = h.change_textfields(user, user_data, user_data.keys())
     self.assertEqual(user_data.keys(), modified_attrs)