'Test different ways of initing an empty table'

def test_data_none_with_cols(self, table_type):

    np_t = np.empty(0, dtype=[(str('a'), 'f4', (2,)), (str('b'), 'i4')])
    for kwargs in ({'names': ('a', 'b')}, {'names': ('a', 'b'), 'dtype': (('f4', (2,)), 'i4')}, {'dtype': [(str('a'), 'f4', (2,)), (str('b'), 'i4')]}, {'dtype': np_t.dtype}):
        t = table_type(**kwargs)
        assert (t.colnames == ['a', 'b'])
        assert (len(t['a']) == 0)
        assert (len(t['b']) == 0)
        if ('dtype' in kwargs):
            assert (t['a'].dtype.type == np.float32)
            assert (t['b'].dtype.type == np.int32)
            assert (t['a'].shape[1:] == (2,))
