Something like this should work:

d = Data(x=[1,2,3])
series = pd.Series([0, 1, 2])
comp = d.get_pixel_component_id(0)
assert_series_equal(series, comp.to_series())