From aec2dd5add8e4bdea4004518743e6943c2334a42 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 14 Jan 2010 23:33:06 +0000 Subject: [PATCH] Add minimal, feeble tests for cwd.py --- terminatorlib/cwd.py | 11 ++++++++++- terminatorlib/tests/test_doctests.py | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/terminatorlib/cwd.py b/terminatorlib/cwd.py index 703a7732..1edb6fb9 100755 --- a/terminatorlib/cwd.py +++ b/terminatorlib/cwd.py @@ -1,7 +1,16 @@ #!/usr/bin/python # Terminator by Chris Jones # 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 os diff --git a/terminatorlib/tests/test_doctests.py b/terminatorlib/tests/test_doctests.py index 0fb46d30..2d86b1f5 100644 --- a/terminatorlib/tests/test_doctests.py +++ b/terminatorlib/tests/test_doctests.py @@ -8,6 +8,7 @@ def test_suite(): 'config', 'plugin', 'testborg', + 'cwd', ): suite.addTest(DocTestSuite('terminatorlib.' + name)) return suite