def test_arealfile(self): fname='/vmshare/data/models/xgwvga.pah6oct.pp' if os.path.exists(fname): r=ch.cdmsHandler(fname) #for v in r['variables']: print v #for g in r['grids']: print g # just finishing is a good enough test of the real file else: print 'Unable to test real file'
def test_create_and_readdummyfile(self): r=ch.makeDummyNC(self.dummy_file) self.assertEqual(r,(30,12,4,12)) r=ch.cdmsHandler(self.dummy_file)