def test_type(self):
        rset = event.ResultSet()
        with pytest.raises(NotImplementedError):
            rset.extend([])
        with pytest.raises(NotImplementedError):
            rset.extend(False)
def setdefault(self, key, default=None):
        return self._collection.setdefault(key, self._from_python(key, default))