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