'Show that basic numpy operations with Column behave sensibly'

def test_numpy_ops(self, Column):

    arr = np.array([1, 2, 3])
    c = Column(arr, name='a')
    for (op, test_equal) in ((operator.eq, True), (operator.ne, False), (operator.ge, True), (operator.gt, False), (operator.le, True), (operator.lt, False)):
        for eq in (op(c, arr), op(arr, c)):
            assert (np.all(eq) if test_equal else (not np.any(eq)))
            assert (len(eq) == 3)
            if (Column is table.Column):
                assert (type(eq) == np.ndarray)
            else:
                assert (type(eq) == np.ma.core.MaskedArray)
            assert (eq.dtype.str == '|b1')
    lt = ((c - 1) < arr)
    assert np.all(lt)
