def METHOD_NAME(my_dir):
    swagger_yaml_path = os.path.join(
        os.path.dirname(my_dir),
        'test-data', '2.0', 'yaml', 'swagger.yml',
    )
    with open(swagger_yaml_path) as f:
        swagger_yaml_content = yaml.safe_load(f)
    swagger_yaml_url = get_url(swagger_yaml_path)
    spec = Spec.from_dict(swagger_yaml_content, swagger_yaml_url)
    assert 'Pet' in spec.definitions