1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/module_utils
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
..
basic Give native strings to selinux library functions. (#17184) 2016-08-22 16:44:13 -07:00
__init__.py Adding module_utils tests from v1 to v2 2015-05-17 01:29:40 -05:00
test_basic.py Give native strings to selinux library functions. (#17184) 2016-08-22 16:44:13 -07:00
test_database.py Adding module_utils tests from v1 to v2 2015-05-17 01:29:40 -05:00
test_distribution_version.py add more distribution version tests (#16563) 2016-07-04 15:57:57 +02:00
test_facts.py Fix facts.py for python3 (#17131) 2016-08-18 09:36:03 -04:00