def test_file_list(self):
        mock = MagicMock(return_value='')
        with patch.dict(rpm.__salt__, {'cmd.run': mock}):
            self.assertDictEqual(rpm.file_list('httpd'),
                                 {'errors': [], 'files': []})

    # 'file_dict' function tests: 1
Test if it list the files that belong to a package.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/rpm_test.py/RpmTestCase.test_file_list