ansible/test/units/module_utils/basic
Toshio Kuratomi 57701d7115 Give native strings to selinux library functions. (#17184)
* Give native strings to selinux library functions.

SELinux takes pathnames as native strings.  That means we need to
convert to bytes on python2 and convert to text on python3.

Fixes #17155

* Read kitchen documentation, make module_utils params more like kitchen API

* Remove none nonstring strategy and add strict
* Raise TypeError on invalid nonstring strategy

* Document to_native()

* Make unittests for testing module_utils.text
2016-08-22 16:44:13 -07:00
..
__init__.py AnsibleModules.log() fix for python3 2015-10-12 13:30:27 -07:00
test__log_invocation.py Ship constants to the modules via internal module params rather than a secondary dict. 2016-05-12 20:30:05 -07:00
test_exit_json.py Ship constants to the modules via internal module params rather than a secondary dict. 2016-05-12 20:30:05 -07:00
test_heuristic_log_sanitize.py Enable some basic.py tests on python3 (#17167) 2016-08-20 10:13:54 -07:00
test_known_hosts.py Make module_utils.known_hosts.get_fqdn work on ipv6 2015-12-14 19:30:54 +01:00
test_log.py Fix unit tests for module_name commit #16087 2016-06-10 21:13:34 +02:00
test_no_log.py Enable some basic.py tests on python3 (#17167) 2016-08-20 10:13:54 -07:00
test_run_command.py Port urls.py to python3 and other byte vs text fixes (#16124) 2016-06-04 16:19:57 -07:00
test_safe_eval.py A little unittest refactoring (#16704) 2016-07-14 09:22:54 -07:00
test_set_mode_if_different.py A little unittest refactoring (#16704) 2016-07-14 09:22:54 -07:00
test_text.py Give native strings to selinux library functions. (#17184) 2016-08-22 16:44:13 -07:00