Exemplo n.º 1
0
def test_legacy_firefox_wrong_masterpassword_key():
    with pytest.raises(ffpass.WrongPassword):
        ffpass.getKey(Path('tests/firefox-mp-70'), 'wrongpassword')
Exemplo n.º 2
0
def test_legacy_firefox_key():
    key = ffpass.getKey(Path('tests/firefox-70'))
    assert key == TEST_KEY
Exemplo n.º 3
0
def test_legacy_firefox_mp_key():
    key = ffpass.getKey(Path('tests/firefox-mp-70'), MASTER_PASSWORD)
    assert key == TEST_KEY
Exemplo n.º 4
0
def test_firefox_key():
    key = ffpass.getKey(Path('tests/firefox-84'))
    assert key == TEST_KEY