def METHOD_NAME(self):
    user = factories.User()
    password = u"testpassword\xc2\xa0"
    user_obj = model.User.by_name(user["name"])
    user_obj._set_password(password)
    user_obj.save()
    assert user_obj.validate_password(password)