boto/boto — pull request #1724 by oozie (2013-09-14 16:17:26+00:00)
Title: Fix for broken task_list override in poll() methods of Deciders and Workers

`boto.swf.layer1.Layer1.poll_for_activity_task` accepts `task_list` as a positional argument, while `boto.swf.layer2.ActivityWorker.poll` takes a keyword argument and passes it down to `Layer1` as such. As a result, it's impossible to poll for a non-default tasklist (other than defined in `self.task_list`). The same goes for the deciders.

This change fixes this bug and introduces unit tests against it.
BEFORE:
```python
$ python
Python 2.7.2+ (default, Jul 20 2012, 22:12:53)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto.swf.layer2 as swf
>>> swf.Decider(domain='test', task_list='default').poll(task_list='override')
Traceback (most recent call last):
File "", line 1, in
File "boto/swf/layer2.py", line 215, in poll
**kwargs)
TypeError: poll_for_decision_task() got multiple values for keyword argument 'task_list'
>>>
```
AFTER:
```python
$ python
Python 2.7.2+ (default, Jul 20 2012, 22:12:53)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto.swf.layer2 as swf
>>> swf.Decider(domain='test', task_list='default').poll(task_list='override')
{'startedEventId': 0, 'previousStartedEventId': 0}
>>>
```