namlook/mongokit — pull request #97 by dtl (2012-07-02 13:24:50+00:00)
Title: __getitem__ on unwrapped cursor checkes if __wrap is None

The added test without the fix:

```
nosetests tests/test_api.py:ApiTestCase.test_unwrapped_cursor
E
======================================================================
ERROR: test_unwrapped_cursor (test_api.ApiTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dtl/.virtualenvs/mongokit-master/src/mongokit/tests/test_api.py", line 1047, in test_unwrapped_cursor
doc = self.col.find()[0]
File "/Users/dtl/.virtualenvs/mongokit-master/src/mongokit/mongokit/cursor.py", line 50, in __getitem__
return self.__wrap(obj)
TypeError: 'NoneType' object is not callable

----------------------------------------------------------------------
Ran 1 test in 2.423s

FAILED (errors=1)
```