Example #1
0
def test_user_loader():
    eq_(auth._user_loader('human:[email protected]'),
        auth.HumanUser('*****@*****.**'))
Example #2
0
def test_user_loader_invalid():
    eq_(auth._user_loader('somedata'), None)
Example #3
0
def test_user_loader_nonhuman():
    eq_(auth._user_loader('alien:[email protected]'), None)
Example #4
0
def test_user_loader_invalid():
    eq_(auth._user_loader('somedata'),
        None)
Example #5
0
def test_user_loader_nonhuman():
    eq_(auth._user_loader('alien:[email protected]'),
        None)
Example #6
0
def test_user_loader():
    eq_(auth._user_loader('human:[email protected]'),
        auth.HumanUser('*****@*****.**'))