def test_input_validation():
 assert_raises(ValueError, DataSpecsMapping, (VectorSpace(dim=10), ('features', 'targets')))
 assert_raises(AssertionError, DataSpecsMapping, (('features', 'targets'), VectorSpace(dim=10)))

def test_input_validation ( ) : assert_raises ( ValueError , DataSpecsMapping , ( VectorSpace ( dim = 10 ) , ( 'features' , 'targets' ) ) ) assert_raises ( AssertionError , DataSpecsMapping , ( ( 'features' , 'targets' ) , VectorSpace ( dim = 10 ) ) )
dataspecsmapping should raise errors if inputs are not formatted as data specs .