def test_type(self):
        rset = event.ResultSet()
        with pytest.raises(NotImplementedError):
            rset.extend([])
        with pytest.raises(NotImplementedError):
            rset.extend(False)
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)