Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Valliappa Lakshmanan committed Sep 23, 2014
1 parent 6f3cf2d commit 4b8d0d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added xray/test/data/example_1.nc.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions xray/test/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ def test_roundtrip_example_1_netcdf(self):
with self.roundtrip(expected) as actual:
self.assertDatasetIdentical(expected, actual)

def test_roundtrip_example_1_netcdf_gz(self):
with open_example_dataset('example_1.nc.gz') as expected:
with open_example_dataset('example_1.nc') as actual:
self.assertDatasetIdentical(expected, actual)

def test_orthogonal_indexing(self):
in_memory = create_test_data()
with self.roundtrip(in_memory) as on_disk:
Expand Down

0 comments on commit 4b8d0d6

Please sign in to comment.