def test_undefined_infodict():
    with pytest.raises(ValueError) as err:
        Dataset._infodict("blahblahblah")
    assert str(err.value).startswith("No such dataset blahblahblah exists")
Esempio n. 2
0
def test_undefined_infodict():
    with pytest.raises(ValueError) as err:
        info = Dataset._infodict('blahblahblah')
    assert str(err.value).startswith('No such dataset blahblahblah exists')