def test_version(self):
        with patch.object(firewalld, '__firewall_cmd', return_value=2):
            self.assertEqual(firewalld.version(), 2)
Check whether the file is writable.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/firewalld_test.py/FirewalldTestCase.test_version--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/file.py/File._check_writable