def test_chain():
 chain_type = hug.types.Chain(hug.types.text, hug.types.LongerThan(10))
 assert (chain_type(12345678901) == '12345678901')
 with pytest.raises(ValueError):
  chain_type(1)

def test_chain ( ) : chain_type = hug . types . Chain ( hug . types . text , hug . types . LongerThan ( 10 ) ) assert ( chain_type ( 12345678901 ) == '12345678901' ) with pytest . raises ( ValueError ) : chain_type ( 1 )
test to ensure that chaining together multiple types works as expected .