

def test_serialize_user(self):
    user = UserFactory()
    result = serialize_user(user)
    assert_equal(result, {
        'email': {
            'email': user.username,
        },
        'email_type': 'html',
        'merge_vars': {
            'fname': user.given_name,
            'lname': result.family_name,
        },
    })

dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/sync_email.py TestSyncEmail.test_serialize_user/VarMisuse@61/87 `user`->`result`