20 lines
725 B
Python
20 lines
725 B
Python
from pathlib import Path
|
|
import unittest
|
|
import reconcile
|
|
|
|
|
|
class FreshEvidenceBoundaryTests(unittest.TestCase):
|
|
def test_historical_pdf_record_cannot_be_a_fresh_result(self):
|
|
with self.assertRaises(ValueError):
|
|
reconcile.require_fresh(reconcile.ROOT/'.artifacts/p9-remed-02/final-linux/linux-pdf.json')
|
|
|
|
def test_similar_prefix_is_not_the_current_package(self):
|
|
with self.assertRaises(ValueError):
|
|
reconcile.require_fresh(reconcile.ROOT/'.artifacts/p9-sec-02-old/result.json')
|
|
|
|
def test_current_pdf_evidence_root_is_accepted(self):
|
|
reconcile.require_fresh(reconcile.ROOT/'.artifacts/p9-sec-02/final-linux/linux-pdf.json')
|
|
|
|
|
|
if __name__=='__main__':unittest.main()
|