コード例 #1
0
ファイル: test_inline.py プロジェクト: MarcSchmitzer/pylf
def test_authenticate_fail_account(config):
    authr = InlineAuthenticator.from_config(config)
    assert authr("noone", "test4321") is None
コード例 #2
0
ファイル: test_inline.py プロジェクト: MarcSchmitzer/pylf
def test_authenticate_ok(config):
    authr = InlineAuthenticator.from_config(config)
    assert authr("marc", "test1234")
コード例 #3
0
ファイル: test_inline.py プロジェクト: MarcSchmitzer/pylf
def test_authenticate_fail_password(config):
    authr = InlineAuthenticator.from_config(config)
    assert authr("marc", "test4321") is None
コード例 #4
0
ファイル: test_inline.py プロジェクト: MarcSchmitzer/pylf
def test_from_config(config):
    authr = InlineAuthenticator.from_config(config)
    assert "marc" in authr