<s> from valor . schema import Schema <EOL> from . fixtures import schema_fname <EOL> def test_schema_from_file_name ( schema_fname ) : <EOL> s = Schema . from_file ( schema_fname ) <EOL> assert s [ '<STR_LIT:title>' ] == '<STR_LIT>' <EOL> def test_schema_from_stream ( schema_fname ) : <EOL> with open ( schema_fname ) as fp : <EOL> s = Schema . from_file ( fp ) <EOL> assert s [ '<STR_LIT:title>' ] == '<STR_LIT>' <EOL> def test_schema_resolve ( schema_fname ) : <EOL> s = Schema . from_file ( schema_fname ) <EOL> assert s . resolve_ref ( s [ '<STR_LIT>' ] [ '<STR_LIT>' ] [ '<STR_LIT>' ] ) == s [ '<STR_LIT>' ] [ '<STR_LIT>' ] </s>
