Ejemplo n.º 1
0
def test_init_badvalue():
    with pytest.raises(ValueError):
        tabular.TabularData([{'foo': 'bar'}])
Ejemplo n.º 2
0
def test_td_badlen():
    with pytest.raises(ValueError):
        tabular.TabularData(ex_data2_badlen)
Ejemplo n.º 3
0
def test_init_emptyvalue():
    with pytest.raises(ValueError):
        tabular.TabularData([])
Ejemplo n.º 4
0
def test_init_badtype():
    with pytest.raises(TypeError):
        tabular.TabularData('foo')
    with pytest.raises(TypeError):
        tabular.TabularData({'foo': 'bar'})
Ejemplo n.º 5
0
def tabdata2():
    obj = tabular.TabularData(ex_data2)
    return obj
Ejemplo n.º 6
0
def test_init_badvalue():
    with pytest.raises(ValueError):
        tabular.TabularData([{"foo": "bar"}])
Ejemplo n.º 7
0
def test_init_badtype():
    with pytest.raises(TypeError):
        tabular.TabularData("foo")
    with pytest.raises(TypeError):
        tabular.TabularData({"foo": "bar"})