def test_nullable():
 nullable_type = hug.types.Nullable(hug.types.text, hug.types.LongerThan(10))
 assert (nullable_type(12345678901) == '12345678901')
 assert (nullable_type(None) is None)
 with pytest.raises(ValueError):
  nullable_type(1)

def test_nullable ( ) : nullable_type = hug . types . Nullable ( hug . types . text , hug . types . LongerThan ( 10 ) ) assert ( nullable_type ( 12345678901 ) == '12345678901' ) assert ( nullable_type ( None ) is None ) with pytest . raises ( ValueError ) : nullable_type ( 1 )
test the concept of a nullable type .