def test_no_len_on_xrange(self):
    iterable = xrange(10)
    raises(TypeError, len, iter(iterable))
def test_no_len_on_xrange(self):
    iterable = xrange(10)
    raises(TypeError, len, iter(iterable))