From e58843706742d3fcd6c1905e57bf130d8b0220de Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 27 Feb 2016 10:02:45 -0500 Subject: [PATCH] Adding some unicode params to the ActionBase module formatting test --- test/units/plugins/action/test_action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/units/plugins/action/test_action.py b/test/units/plugins/action/test_action.py index 57aa38c20a..6b782e1322 100644 --- a/test/units/plugins/action/test_action.py +++ b/test/units/plugins/action/test_action.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2015, Florian Apolloner # @@ -209,7 +210,7 @@ class TestActionBase(unittest.TestCase): # test python module formatting with patch.object(builtins, 'open', mock_open(read_data=to_bytes(python_module_replacers.strip(), encoding='utf-8'))) as m: - mock_task.args = dict(a=1) + mock_task.args = dict(a=1, foo='fö〩') mock_connection.module_implementation_preferences = ('',) (style, shebang, data) = action_base._configure_module(mock_task.action, mock_task.args) self.assertEqual(style, "new")