()
| 46 | |
| 47 | |
| 48 | def test_function_call(): |
| 49 | yaml_config = """ |
| 50 | foo: !pw.tests.test_yaml.baz |
| 51 | a: 1 |
| 52 | b: 2 |
| 53 | c: bar |
| 54 | """ |
| 55 | |
| 56 | d = load_yaml(yaml_config) |
| 57 | assert "foo" in d.keys() |
| 58 | assert len(d.keys()) == 1 |
| 59 | assert d["foo"] == Foo(1, 2, "bar") |
| 60 | |
| 61 | |
| 62 | def test_variables(): |