예제 #1
0
    def test_ingestion_default(self):

        ingestion = ScienceGranuleIngestionWorker()
        ingestion.connection_id = ''
        ingestion.connection_index = None

        self.assertFalse(ingestion.has_gap('',''))
        self.assertFalse(ingestion.has_gap('',''))
        self.assertFalse(ingestion.has_gap('',''))
예제 #2
0
    def test_ingestion_default(self):

        ingestion = ScienceGranuleIngestionWorker()
        ingestion.connection_id = ''
        ingestion.connection_index = None

        self.assertFalse(ingestion.has_gap('', ''))
        self.assertFalse(ingestion.has_gap('', ''))
        self.assertFalse(ingestion.has_gap('', ''))
예제 #3
0
    def test_ingestion_gap(self):

        ingestion = ScienceGranuleIngestionWorker()
        ingestion.connection_id = ''
        ingestion.connection_index = None

        self.assertFalse(ingestion.has_gap('c1','0'))
        self.assertTrue(ingestion.has_gap('c1','0'))
        self.assertFalse(ingestion.has_gap('c1','1'))
        self.assertTrue(ingestion.has_gap('c2','1'))
        self.assertTrue(ingestion.has_gap('c2','0'))

        ingestion.update_connection_index('c2','12')
        self.assertFalse(ingestion.has_gap('c2','13'))
        self.assertTrue(ingestion.has_gap('c2','12'))
        self.assertTrue(ingestion.has_gap('c2','14'))
예제 #4
0
    def test_ingestion_gap(self):

        ingestion = ScienceGranuleIngestionWorker()
        ingestion.connection_id = ''
        ingestion.connection_index = None

        self.assertFalse(ingestion.has_gap('c1', '0'))
        self.assertTrue(ingestion.has_gap('c1', '0'))
        self.assertFalse(ingestion.has_gap('c1', '1'))
        self.assertTrue(ingestion.has_gap('c2', '1'))
        self.assertTrue(ingestion.has_gap('c2', '0'))

        ingestion.update_connection_index('c2', '12')
        self.assertFalse(ingestion.has_gap('c2', '13'))
        self.assertTrue(ingestion.has_gap('c2', '12'))
        self.assertTrue(ingestion.has_gap('c2', '14'))