Example #1
0
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')
Example #2
0
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')
Example #3
0
 def yaml(self):
     r"""str: The full path to the yaml file for this example."""
     return get_example_yaml(self.name, self.language)