Skip to content

Commit

Permalink
Test of access to a dataset's blocks.
Browse files Browse the repository at this point in the history
See #6.
  • Loading branch information
sgillies committed Dec 10, 2013
1 parent 1d774fc commit b1149ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rasterio/tests/test_blocks.py
@@ -0,0 +1,10 @@
import unittest

import rasterio

class RasterBlocksTest(unittest.TestCase):
def test_blocks(self):
with rasterio.open('rasterio/tests/data/RGB.byte.tif') as s:
blocks = list(s.blocks)
self.assertEqual(len(blocks), 1)

0 comments on commit b1149ce

Please sign in to comment.