Skip to content

Commit aa0e9d8

Browse files
committed
add missing docstrings and adjust import a bit after disabling autopep8 import mangling
git-svn-id: svn+ssh://svn.code.sf.net/p/migrid/code/trunk@6076 b75ad72c-e7d7-11dd-a971-7dbc132099af
1 parent a3f3896 commit aa0e9d8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_mig_shared_install.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,29 @@
3434
import sys
3535

3636
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__), ".")))
37+
3738
from support import MigTestCase, testmain, temppath, cleanpath, fixturepath
3839

39-
from mig.shared.install import \
40-
generate_confs
40+
from mig.shared.install import generate_confs
4141

4242
class DummyPwInfo:
43+
"""Wrapper to assist in create_dummy_gpwnam"""
44+
4345
def __init__(self, pw_uid, pw_gid):
4446
self.pw_uid = pw_uid
4547
self.pw_gid = pw_gid
4648

4749

4850
def create_dummy_gpwnam(pw_uid, pw_gid):
51+
"""Helper to mimic pwd.getpwnam /etc/passwd lookup for arbitrary users"""
52+
4953
dummy = DummyPwInfo(pw_uid, pw_gid)
5054
return lambda _: dummy
5155

5256

5357
class MigSharedInstall__generate_confs(MigTestCase):
58+
"""Unit test helper for the migrid code pointed to in class name"""
59+
5460
def test_creates_output_directory_and_adds_active_symlink(self):
5561
symlink_path = temppath('confs', self)
5662
cleanpath('confs-foobar', self)

0 commit comments

Comments
 (0)