Did I find the right examples for you? yes no

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
Checks for any invalid specifications.
        

src/d/a/datagristle-0.56/gristle/tests/test_location_slicer.py   datagristle(Download)
    def test_spec_validator(self):
        sp5 = mod.SpecProcessor(['3:5'], 'rec_incl_spec')
        assert sp5._spec_validator(['3'])
        assert sp5._spec_validator(['3:8'])
        assert sp5._spec_validator([':'])
        assert sp5._spec_validator(['3:5','7','10:',':',':19'])
        # pylint: disable=E1101
        with pytest.raises(ValueError):
            sp5._spec_validator([''])

src/d/a/DataGristle-HEAD/gristle/tests/test_location_slicer.py   DataGristle(Download)
    def test_spec_validator(self):
        sp5 = mod.SpecProcessor(['3:5'], 'rec_incl_spec')
        assert sp5._spec_validator(['3'])
        assert sp5._spec_validator(['3:8'])
        assert sp5._spec_validator([':'])
        assert sp5._spec_validator(['3:5','7','10:',':',':19'])
        # pylint: disable=E1101
        with pytest.raises(ValueError):
            sp5._spec_validator([''])