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