~ubuntu-branches/ubuntu/wily/pyfits/wily-proposed

« back to all changes in this revision

Viewing changes to lib/tests/testPyfitsTable.py

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2011-03-07 15:24:41 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110307152441-zg23n7wq3lldn6h7
Tags: 1:2.4.0-1
* New upstream version.
* Switch to 3.0 (quilt) format.
* Bump Standards-Version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1575
1575
        hdul.close()
1576
1576
        os.remove('newtable.fits')
1577
1577
 
 
1578
    def testFITS_recColumnAccess(self):
 
1579
        t=pyfits.open(test_dir+'table.fits')
 
1580
        tbdata = t[1].data
 
1581
        self.assertEqual(tbdata.V_mag.all(), tbdata.field('V_mag').all())
 
1582
        self.assertEqual(tbdata.V_mag.all(), tbdata['V_mag'].all())
1578
1583
 
 
1584
        t.close()
1579
1585
 
1580
1586
 
1581
1587