Add minimal, feeble tests for cwd.py
This commit is contained in:
parent
62d5672a88
commit
aec2dd5add
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue