Commit db6f2a84 authored by Łukasz Nowak's avatar Łukasz Nowak

- change method name and add docstring as requested


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e6bb265
......@@ -29,10 +29,8 @@
import unittest
import sys, os, tempfile, stat, subprocess
def createCleanList(s):
"""
TODO: Add doc string.
"""
def getCleanList(s):
"""Converts free form string separated by whitespaces to python list"""
return sorted([q.strip() for q in s.split() if len(q.strip()) > 0])
def readElfAsDict(f):
......@@ -90,10 +88,10 @@ print sys.version_info[:2]
def test_required_libraries(self):
"""Checks possiblity of importing libraries"""
ignored_library_list = createCleanList("""
ignored_library_list = getCleanList("""
socks
""")
required_library_list = createCleanList("""
required_library_list = getCleanList("""
ERP5Diff
MySQLdb
SOAPpy
......@@ -240,7 +238,7 @@ class AssertApache(unittest.TestCase):
def test_modules(self):
"""Checks for availability of apache modules"""
required_module_list = createCleanList("""
required_module_list = getCleanList("""
authn_default_module
log_config_module
proxy_http_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment