Beispiel #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
Beispiel #2
0
def testDeleteHistoryEmptySk():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, "", urls)
Beispiel #3
0
def testDeleteHistoryNoSk():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, None, urls)
Beispiel #4
0
def testDeleteHistoryEmptyUrls():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, sk2, [])
Beispiel #5
0
def testDeleteHistoryNoUrls():
    with pytest.raises(ValueError) as ex:
        hist.deleteHistory(did, sk2, None)