def test_get_example_yaml(): r"""Test get_example_yaml.""" with pytest.raises(KeyError): get_example_yaml('invalid', 'invalid') with pytest.raises(KeyError): get_example_yaml('hello', 'invalid') get_example_yaml('hello', 'r') get_example_yaml('hello', 'R')
def test_get_example_yaml(): r"""Test get_example_yaml.""" assert_raises(KeyError, get_example_yaml, 'invalid', 'invalid') assert_raises(KeyError, get_example_yaml, 'hello', 'invalid') get_example_yaml('hello', 'r') get_example_yaml('hello', 'R')
def yaml(self): r"""str: The full path to the yaml file for this example.""" return get_example_yaml(self.name, self.language)