def test_range(self):
        self.assertNotEqual(type(range(10)), list)
        self.assertEqual(sum(range(10)), 45)
        self.assertTrue(9 in range(10))
        self.assertEqual(list(range(5)), [0, 1, 2, 3, 4])
        self.assertEqual(repr(range(10)), 'range(0, 10)')
        self.assertEqual(repr(range(1, 10)), 'range(1, 10)')
        self.assertEqual(repr(range(1, 1)), 'range(1, 1)')
        self.assertEqual(repr(range(-10, 10, 2)), 'range(-10, 10, 2)')
dataset/ETHPy150Open PythonCharmers/python-future/tests/test_future/test_common_iterators.py/TestIterators.test_range/original