def test_strict_castform(session, media_root):
 with pytest.raises(ValueError):
  castform = session.query(tables.PokemonSpecies).filter_by(identifier=u'castform').first()
  rainy_castform = [f for f in castform.forms if (f.form_identifier == 'rainy')][0]
  rainy_castform = media.PokemonFormMedia(media_root, rainy_castform)
  rainy_castform.overworld('up', strict=True)

def test_strict_castform ( session , media_root ) : with pytest . raises ( ValueError ) : castform = session . query ( tables . PokemonSpecies ) . filter_by ( identifier = u'castform' ) . first ( ) rainy_castform = [ f for f in castform . forms if ( f . form_identifier == 'rainy' ) ] [ 0 ] rainy_castform = media . PokemonFormMedia ( media_root , rainy_castform ) rainy_castform . overworld ( 'up' , strict = True )
castform rainy form overworld with strict -- unavailable .