def test_owner(self):
        func = 'pkg.owner'
        available = self.run_function('sys.doc', [func])

        if available:
            ret = self.run_function(func, ['/bin/ls'])
            self.assertNotEqual(len(ret), 0)
        else:
            os_grain = self.run_function('grains.item', ['os'])['os']
            self.skipTest('{0} is unavailable on {1}'.format(func, os_grain))
test finding the package owning a file
dataset/ETHPy150Open saltstack/salt/tests/integration/modules/pkg.py/PkgModuleTest.test_owner