Add minimal, feeble tests for cwd.py

This commit is contained in:
Chris Jones 2010-01-14 23:33:06 +00:00
parent 62d5672a88
commit aec2dd5add
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,16 @@
#!/usr/bin/python #!/usr/bin/python
# Terminator by Chris Jones <cmsj@tenshu.net> # Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only # GPL v2 only
"""cwd.py - function necessary to get the cwd for a given pid on various OSes""" """cwd.py - function necessary to get the cwd for a given pid on various OSes
>>> cwd = get_default_cwd()
>>> cwd.__class__.__name__
'str'
>>> func = get_pid_cwd()
>>> func.__class__.__name__
'function'
"""
import platform import platform
import os import os

View File

@ -8,6 +8,7 @@ def test_suite():
'config', 'config',
'plugin', 'plugin',
'testborg', 'testborg',
'cwd',
): ):
suite.addTest(DocTestSuite('terminatorlib.' + name)) suite.addTest(DocTestSuite('terminatorlib.' + name))
return suite return suite