def test_validation_checking(self):

        grammar_errors = [('fill_opacity', ValueRef(value=-1), ValueError,
                           'fill_opacity must be between 0 and 1'),
                          ('fill_opacity', ValueRef(value=2), ValueError,
                           'fill_opacity must be between 0 and 1'),
                          ('stroke_width', ValueRef(value=-1), ValueError,
                           'stroke width cannot be negative'),
                          ('stroke_opacity', ValueRef(value=-1), ValueError,
                           'stroke_opacity must be between 0 and 1'),
                          ('stroke_opacity', ValueRef(value=2), ValueError,
                           'stroke_opacity must be between 0 and 1'),
                          ('size', ValueRef(value=-1), ValueError,
                           'size cannot be negative')]

        assert_grammar_validation(grammar_errors, PropertySet())

        bad_shape = ValueRef(value="BadShape")
        nt.assert_raises(ValueError, PropertySet, shape=bad_shape)
Valid. More than one item.
dataset/ETHPy150Open wrobstory/vincent/tests/test_vega.py/TestPropertySet.test_validation_checking--crossover with--dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/test/test_validate.py/metadataExtensionTest7