def test_get_arg_by_name(self, yaml, name, expected): snip = Snippet('', yaml, '') assert snip.get_arg_by_name(name) == expected