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