def test_str(): qr = QueryResponse([]) assert str( qr ) == 'Start Time End Time Source Instrument Type\n---------- -------- ------ ---------- ----'
def test_repr(): qr = QueryResponse([]) assert repr(qr) in ( '<Table masked=False length=0>\nStart Time End Time Source Instrument Type \n float64 float64 float64 float64 float64\n---------- -------- ------- ---------- -------', # astropy >1.0 "<Table rows=0 names=('Start Time','End Time','Source','Instrument','Type')>\narray([], \n dtype=[('Start Time', '<f8'), ('End Time', '<f8'), ('Source', '<f8'), ('Instrument', '<f8'), ('Type', '<f8')])" ) # astropy 0.4.x
def test_repr(): qr = QueryResponse([]) assert "Start Time End Time Source Instrument Type" in repr(qr)