Browse Source

Update tests

master
Ruben Verweij 8 years ago
parent
commit
3620064dfd
3 changed files with 3 additions and 0 deletions
  1. BIN
      tests/test_data/data001.nd2
  2. BIN
      tests/test_data/data002.nd2
  3. +3
    -0
      tests/test_reader.py

BIN
tests/test_data/data001.nd2 View File


BIN
tests/test_data/data002.nd2 View File


+ 3
- 0
tests/test_reader.py View File

@ -13,6 +13,9 @@ class TestReader(unittest.TestCase):
path.join(dir_path, 'test_data/data002.nd2') path.join(dir_path, 'test_data/data002.nd2')
] ]
def test_extension(self):
self.assertTrue('nd2' in ND2Reader.class_exts())
def test_sizes_data_001(self): def test_sizes_data_001(self):
with ND2Reader(self.files[0]) as reader: with ND2Reader(self.files[0]) as reader:
self.assertEqual(reader.sizes['x'], 128) self.assertEqual(reader.sizes['x'], 128)


Loading…
Cancel
Save