Skip to content

Commit

Permalink
Check that ImageFileCollection summary is always a masked table
Browse files Browse the repository at this point in the history
Closes #148
  • Loading branch information
mwcraig committed Mar 8, 2014
1 parent 8ab1660 commit 0d95f34
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions msumastro/tests/test_image_collection.py
Expand Up @@ -434,3 +434,15 @@ def test_tabulate_all_keywords(self, triage_setup):
ic = tff.ImageFileCollection(location=triage_setup.test_dir,
keywords='*')
assert 'imagetyp' in ic.summary_info.colnames

def test_summary_table_is_always_masked(self, triage_setup):
# First, try grabbing all of the keywords
ic = tff.ImageFileCollection(location=triage_setup.test_dir,
keywords='*')
assert ic.summary_info.masked
# Now, try keywords that every file will have
ic.keywords = ['bitpix']
assert ic.summary_info.masked
# What about keywords that include some that will surely be missing?
ic.keywords = ['bitpix', 'dsafui']
assert ic.summary_info.masked

0 comments on commit 0d95f34

Please sign in to comment.