Exemplo n.º 1
0
def test_internal_fields_not_returned(user):
    u = User(**user)
    result = u.clean()

    assert '_id' not in result
    assert 'password' not in result
    assert 'verification_hash' not in result
Exemplo n.º 2
0
def test_internal_fields_not_returned(user):
    u = User(**user)
    result = u.clean()

    assert '_id' not in result
    assert 'password' not in result
    assert 'verification_hash' not in result
Exemplo n.º 3
0
def test_unverified():
    u = User(**UNVERIFIED_USER)
    result = u.clean()
    assert result['verified'] is False
Exemplo n.º 4
0
def test_verified():
    u = User(**VERIFIED_USER)
    result = u.clean()
    assert result['verified'] is True
Exemplo n.º 5
0
def test_unverified():
    u = User(**UNVERIFIED_USER)
    result = u.clean()
    assert result['verified'] is False
Exemplo n.º 6
0
def test_verified():
    u = User(**VERIFIED_USER)
    result = u.clean()
    assert result['verified'] is True