diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-04-19 16:28:41 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-04-19 16:28:41 -0500 |
commit | a0e7699a45582d475d293350bcd2ba10ec5a8c43 (patch) | |
tree | 47036a30de54ba94680f74e78d3cceb41c822fd4 /mediagoblin/tests/testplugins/callables3 | |
parent | 234ddad607fa8d38e01c9ff1386fc32427c99d8f (diff) | |
download | mediagoblin-a0e7699a45582d475d293350bcd2ba10ec5a8c43.tar.lz mediagoblin-a0e7699a45582d475d293350bcd2ba10ec5a8c43.tar.xz mediagoblin-a0e7699a45582d475d293350bcd2ba10ec5a8c43.zip |
Added new tests to test hook_transform()
Diffstat (limited to 'mediagoblin/tests/testplugins/callables3')
-rw-r--r-- | mediagoblin/tests/testplugins/callables3/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mediagoblin/tests/testplugins/callables3/__init__.py b/mediagoblin/tests/testplugins/callables3/__init__.py index 8d0c9c25..04efc8fc 100644 --- a/mediagoblin/tests/testplugins/callables3/__init__.py +++ b/mediagoblin/tests/testplugins/callables3/__init__.py @@ -29,10 +29,13 @@ def multi_handle_with_canthandle(call_log): call_log.append("Hi, I'm the third") return "the third returns" +def expand_tuple(this_tuple): + return this_tuple + (3,) hooks = { 'setup': setup_plugin, 'just_one': just_one, 'multi_handle': multi_handle, 'multi_handle_with_canthandle': multi_handle_with_canthandle, + 'expand_tuple': expand_tuple, } |