#@ load("@ytt:assert", "assert")
#@ load("@ytt:json", "json")

#@ def yamlFunc():
foo: bar
#@ end

test_equals: #@ assert.equals(yamlFunc(), {"map":"value"})

+++

ERR: 
- assert.equals: Not equal:
    in <toplevel>
      stdin:8 | test_equals: #@ assert.equals(yamlFunc(), {"map":"value"})

    reason:
     (expected type: yamlfragment)
     foo: bar
     
     
     (was type: dict)
     map: value
