'Call passes the column to `transform` and returns its results'

def test_call(self):

    data = self.data
    trans = self.TransformationMock(data.domain[2])
    np.testing.assert_almost_equal(trans(data), np.arange(len(data)))
    np.testing.assert_array_equal(trans.called_with, data.X[:, 2])
    np.testing.assert_almost_equal(trans(data[0]), np.array([0]))
    np.testing.assert_array_equal(trans.called_with, data.X[(0, 2)])
    trans = self.TransformationMock(data.domain.metas[0])
    np.testing.assert_almost_equal(trans(data), np.arange(len(data)))
    np.testing.assert_array_equal(trans.called_with, data.metas.flatten())
    np.testing.assert_almost_equal(trans(data[0]), np.array([0]))
    np.testing.assert_array_equal(trans.called_with, data.metas[(0, 0)])
