def test_input_validation():
    assert_raises(ValueError,
                  DataSpecsMapping,
                  (VectorSpace(dim=10), ('features', 'targets')))
    assert_raises(AssertionError,
                  DataSpecsMapping,
                  (('features', 'targets'), VectorSpace(dim=10)))
append ``comment`` to ``ret['comment']``
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/tests/test_data_specs.py/test_input_validation--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/kmod.py/_append_comment