示例#1
0
    def test_download_dem3_viewpano(self):

        # this zone does exist and file should be small enough for download
        zone = 'L32'
        fp = utils._download_dem3_viewpano(zone)
        self.assertTrue(os.path.exists(fp))
        zone = 'U44'
        fp = utils._download_dem3_viewpano(zone)
        self.assertTrue(os.path.exists(fp))
示例#2
0
    def test_download_dem3_viewpano(self):

        # this zone does exist and file should be small enough for download
        zone = 'L32'
        fp = utils._download_dem3_viewpano(zone, {})
        self.assertTrue(os.path.exists(fp))
        zone = 'U44'
        fp = utils._download_dem3_viewpano(zone, {})
        self.assertTrue(os.path.exists(fp))
示例#3
0
    def test_download_dem3_viewpano_fails(self):

        # this zone does not exist
        zone = 'dummy'
        fp = utils._download_dem3_viewpano(zone)
        self.assertTrue(fp is None)
示例#4
0
    def test_download_dem3_viewpano_fails(self):

        # this zone does not exist
        zone = 'SZ20'
        self.assertTrue(utils._download_dem3_viewpano(zone, {}) is None)
示例#5
0
    def test_download_dem3_viewpano_fails(self):

        # this zone does not exist
        zone = 'dummy'
        fp = utils._download_dem3_viewpano(zone)
        self.assertTrue(fp is None)