def test_catalog_get_record(self):
        c = Catalog()
        catid = '1040010019B4A600'
        record = c.get(catid)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        assert 'DigitalGlobeAcquisition' in record['type']

        self.assertTrue('inEdges' not in list(record.keys()))
    def test_catalog_get_record(self):
        c = Catalog()
        catid = '1040010019B4A600'
        record = c.get(catid)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        assert 'DigitalGlobeAcquisition' in record['type']

        self.assertTrue('inEdges' not in list(record.keys()))
Exemple #3
0
    def test_catalog_get_record_with_relationships(self):
        c = Catalog(self.gbdx)
        catid = '1040010019B4A600'
        record = c.get(catid, includeRelationships=True)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        self.assertEqual(record['type'], 'DigitalGlobeAcquisition')

        self.assertTrue('inEdges' in list(record.keys()))
Exemple #4
0
    def test_catalog_get_record_with_relationships(self):
        c = Catalog(self.gbdx)
        catid = '1040010019B4A600'
        record = c.get(catid, includeRelationships=True)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        self.assertEqual(record['type'], 'DigitalGlobeAcquisition')

        self.assertTrue('inEdges' in list(record.keys()))
    def test_catalog_get_record_with_relationships(self):
        """
        includeRelationships doesn't do anything anymore.  This is now a test of backward compatibility.
        """
        c = Catalog()
        catid = '1040010019B4A600'
        record = c.get(catid, includeRelationships=True)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        assert 'DigitalGlobeAcquisition' in record['type']
    def test_catalog_get_record_with_relationships(self):
        """
        includeRelationships doesn't do anything anymore.  This is now a test of backward compatibility.
        """
        c = Catalog()
        catid = '1040010019B4A600'
        record = c.get(catid, includeRelationships=True)

        self.assertEqual(record['identifier'], '1040010019B4A600')
        assert 'DigitalGlobeAcquisition' in record['type']