diff --git a/tests/unit/plugins/modules/test_pfsense_openvpn_server.py b/tests/unit/plugins/modules/test_pfsense_openvpn_server.py index f5be75aa..4c92060e 100644 --- a/tests/unit/plugins/modules/test_pfsense_openvpn_server.py +++ b/tests/unit/plugins/modules/test_pfsense_openvpn_server.py @@ -56,7 +56,7 @@ def setUp(self): self.mock_run_command = patch('ansible.module_utils.basic.AnsibleModule.run_command') self.run_command = self.mock_run_command.start() - self.run_command.return_value = (0, base64.b64decode(TLSKEY), '') + self.run_command.return_value = (0, base64.b64decode(TLSKEY.encode()).decode(), '') def tearDown(self): """ mocking down """