Пример #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
Пример #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
Пример #3
0
def test_unverified():
    u = User(**UNVERIFIED_USER)
    result = u.clean()
    assert result['verified'] is False
Пример #4
0
def test_verified():
    u = User(**VERIFIED_USER)
    result = u.clean()
    assert result['verified'] is True
Пример #5
0
def test_unverified():
    u = User(**UNVERIFIED_USER)
    result = u.clean()
    assert result['verified'] is False
Пример #6
0
def test_verified():
    u = User(**VERIFIED_USER)
    result = u.clean()
    assert result['verified'] is True