def test_user_loader(): eq_(auth._user_loader('human:[email protected]'), auth.HumanUser('*****@*****.**'))
def test_user_loader_invalid(): eq_(auth._user_loader('somedata'), None)
def test_user_loader_nonhuman(): eq_(auth._user_loader('alien:[email protected]'), None)