Ejemplo n.º 1
0
 def test_parse_filename(self):
     prefix, camera, expid = io._parse_filename('/blat/foo/simspec-00000002.fits')
     self.assertEqual(prefix, 'simspec')
     self.assertEqual(camera, None)
     self.assertEqual(expid, 2)
     prefix, camera, expid = io._parse_filename('/blat/foo/pix-r2-00000003.fits')
     self.assertEqual(prefix, 'pix')
     self.assertEqual(camera, 'r2')
     self.assertEqual(expid, 3)
Ejemplo n.º 2
0
 def test_parse_filename(self):
     prefix, camera, expid = io._parse_filename(
         '/blat/foo/simspec-00000002.fits')
     self.assertEqual(prefix, 'simspec')
     self.assertEqual(camera, None)
     self.assertEqual(expid, 2)
     prefix, camera, expid = io._parse_filename(
         '/blat/foo/pix-r2-00000003.fits')
     self.assertEqual(prefix, 'pix')
     self.assertEqual(camera, 'r2')
     self.assertEqual(expid, 3)