def test_version(self): ''' Test for Return version from firewall-cmd ''' with patch.object(firewalld, '__firewall_cmd', return_value=2): self.assertEqual(firewalld.version(), 2)
def test_version(self): """ Test for Return version from firewall-cmd """ with patch.object(firewalld, "__firewall_cmd", return_value=2): self.assertEqual(firewalld.version(), 2)