def test_jsocresponse_double(): j1 = JSOCResponse(table=astropy.table.Table(data=[[1, 2, 3, 4]])) j1.append(astropy.table.Table(data=[[1, 2, 3, 4]])) assert isinstance(j1, JSOCResponse) assert all(j1.table == astropy.table.vstack([ astropy.table.Table(data=[[1, 2, 3, 4]]), astropy.table.Table(data=[[1, 2, 3, 4]]) ]))
def test_jsocresponse_single(): j1 = JSOCResponse(table=None) assert len(j1) == 0 j1.append(astropy.table.Table(data=[[1, 2, 3, 4]])) assert all(j1.table == astropy.table.Table(data=[[1, 2, 3, 4]])) assert len(j1) == 4
def test_jsocresponse_single(): j1 = JSOCResponse(table=None) assert len(j1) == 0 j1.append(astropy.table.Table(data=[[1,2,3,4]])) assert all(j1.table == astropy.table.Table(data=[[1,2,3,4]])) assert len(j1) == 4
def test_jsocresponse_double(): j1 = JSOCResponse(table=astropy.table.Table(data=[[1,2,3,4]])) j1.append(astropy.table.Table(data=[[1,2,3,4]])) assert isinstance(j1, JSOCResponse) assert all(j1.table == astropy.table.vstack([astropy.table.Table(data=[[1,2,3,4]]), astropy.table.Table(data=[[1,2,3,4]])]))