def test_shorter_than():
    assert hug.types.shorter_than(10)('hi there') == 'hi there'
    assert hug.types.shorter_than(10)(1) == '1'
    assert hug.types.shorter_than(10)('') == ''
    assert '10' in hug.types.shorter_than(10).__doc__
    with pytest.raises(ValueError):
        assert hug.types.shorter_than(10)('there is quite a bit of text here, in fact way more than allowed')
Returns a matrix with the same sparsity structure as self,
dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_shorter_than--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/sparse/compressed.py/_cs_matrix._with_data