예제 #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