def test_write_valid_meta_ipac():
 table = ascii.get_reader(Reader=ascii.Ipac)
 data = table.read('t/no_data_ipac.dat')
 data.meta['keywords']['blah'] = {'value': 'invalid'}
 with catch_warnings(AstropyWarning) as ASwarn:
  out = StringIO()
  data.write(out, format='ascii.ipac')
 assert (len(ASwarn) == 0)

def test_write_valid_meta_ipac ( ) : table = ascii . get_reader ( Reader = ascii . Ipac ) data = table . read ( 't/no_data_ipac.dat' ) data . meta [ 'keywords' ] [ 'blah' ] = { 'value' : 'invalid' } with catch_warnings ( AstropyWarning ) as ASwarn : out = StringIO ( ) data . write ( out , format = 'ascii.ipac' ) assert ( len ( ASwarn ) == 0 )
write an ipac table that contains no data and has *correctly* specified metadata .