def test_signup(suite):
    result = _call('auth/users.signup', data={
        'username': 'signup',
        'password': 'password',
        'email': 'signup@sondra.github.com',
        'given_name': "Jefferson",
        'family_name': "Heard"
    })
    assert result.ok, result.text

    assert 'signup' in suite['auth']['users']
    u = suite['auth']['users']['signup']
    assert u['active'] is False
    assert u['confirmed_email'] is False

    result = _call('auth/users.signup', data={
        'username': 'signup',
        'password': 'password',
        'email': 'signup@sondra.github.com',
        'given_name': "Jefferson",
        'family_name': "Heard"
    })
    assert not result.ok, "Duplicate signup should not be allowed"

    u.delete()
dataset/ETHPy150Open JeffHeard/sondra/sondra/tests/test_requests_auth.py/test_signup/original