cleanup tests

* use nose test generator
* more comments
* move facts import inside the skipped function, fix python3 warning
This commit is contained in:
Robin Roth
2016-04-14 19:44:06 +02:00
committed by Robin Roth
parent 2b104fe6ad
commit 37188ea336
3 changed files with 302 additions and 233 deletions

View File

@@ -282,6 +282,11 @@ class Facts(object):
# platform.dist() is deprecated in 2.6
# in 2.6 and newer, you should use platform.linux_distribution()
def get_distribution_facts(self):
"""
Fills facts about the distribution name and version.
This is unit tested. Please extend the tests to cover all distributions if you have them available.
"""
# A list with OS Family members
OS_FAMILY = dict(