Write test for ownership of file.managed with makedirs=True
Merge pull request #12091 from cachedout/1264

Write test for ownership of file.managed with makedirs=True