def test_pformat_roundtrip():
 'Read a table with empty values and ensure that corresponding entries are masked'
 table = '\n'.join(['a,b,c,d', '1,3,1.11,1', '2, 2, 4.0 , ss '])
 dat = ascii.read(table)
 out = ascii.read(dat.pformat())
 assert (len(dat) == len(out))
 assert (dat.colnames == out.colnames)
 for c in dat.colnames:
  assert np.all((dat[c] == out[c]))

def test_pformat_roundtrip ( ) : table = '\n' . join ( [ 'a,b,c,d' , '1,3,1.11,1' , '2, 2, 4.0 , ss ' ] ) dat = ascii . read ( table ) out = ascii . read ( dat . pformat ( ) ) assert ( len ( dat ) == len ( out ) ) assert ( dat . colnames == out . colnames ) for c in dat . colnames : assert np . all ( ( dat [ c ] == out [ c ] ) )
check that the screen output of print tab can be read .