def METHOD_NAME(self):
    from yt.units.yt_array import YTArray
    fields = [("gas", "density"), ("gas", "velocity_z")]
    ds = fake_random_ds(6)
    dd = ds.all_data()
    at1 = dd.to_astropy_table(fields)
    assert_array_equal(dd[fields[0]].d, at1[fields[0][1]].value)
    assert_array_equal(dd[fields[1]].d, at1[fields[1][1]].value)
    assert dd[fields[0]].units == YTArray.from_astropy(at1[fields[0][1]]).units
    assert dd[fields[1]].units == YTArray.from_astropy(at1[fields[1][1]]).units