コード例 #1
0
    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()))
コード例 #2
0
    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()))
コード例 #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()))
コード例 #4
0
ファイル: test_catalog.py プロジェクト: dmitryzv/gbdxtools
    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()))
コード例 #5
0
    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']
コード例 #6
0
    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']