Exemplo n.º 1
0
    def test_load_provenance_from_archive_with_mock_provenance(self):
        pipeline_context = PipelineContext()
        mock_archive = self.MockArchive()
        mock_provenance = self.MockProvenance()

        pipeline_context.provenance = mock_provenance
        pipeline_context.load_provenance_from_archive(mock_archive)

        self.assertEqual(mock_archive, mock_provenance.archiver)
Exemplo n.º 2
0
    def test_load_provenance_from_archive_fully_loaded(self):
        pipeline_context = PipelineContext()
        mock_archive = self.MockArchive()
        mock_provenance = self.MockProvenance()

        pipeline_context.mark_fully_loaded()
        pipeline_context.provenance = mock_provenance
        pipeline_context.load_provenance_from_archive(mock_archive)

        self.assertEqual(0, mock_provenance.load_provenace_counter)
Exemplo n.º 3
0
    def test_load_provenance_from_archive(self):
        pipeline_context = PipelineContext()
        mock_archive = self.MockArchive()

        pipeline_context.load_provenance_from_archive(mock_archive)