Exemplo n.º 1
0
def testDeleteHistory():
    result = hist.deleteHistory(did, sk2, urls)

    assert result[url1 + "/" + did].status == 200
    assert result[url1 + "/" + did].response.body == history
    assert result[url2 + "/" + did].status == 200
    assert result[url2 + "/" + did].response.body == history
Exemplo n.º 2
0
def testDeleteHistoryEmptySk():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, "", urls)
Exemplo n.º 3
0
def testDeleteHistoryNoSk():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, None, urls)
Exemplo n.º 4
0
def testDeleteHistoryEmptyUrls():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, sk2, [])
Exemplo n.º 5
0
def testDeleteHistoryNoUrls():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, sk2, None)