@@ -0,0 +1,682 @@
+# coding: utf-8%0A# Copyright (c) Materials Virtual Lab.%0A# Distributed under the terms of the BSD License.%0A%0Afrom __future__ import division, unicode_literals, print_function%0A%0A%22%22%22%0A#TODO: Replace with proper module doc.%0A%22%22%22%0A%0A__author__ = 'Shyue Ping Ong'%0A__copyright__ = 'Copyright 2013, The Materials Project'%0A__version__ = '0.1'%0A__maintainer__ = 'Shyue Ping Ong'%0A__email__ = 'ongsp@ucsd.edu'%0A__date__ = '8/29/14'%0A%0Aimport unittest%0A%0Afrom monty.itertools import iterator_from_slice%0A%0A%0Aclass FuncTest(unittest.TestCase):%0A    def test_iterator_from_slice(self):%0A%0A        self.assertEqual(list(iterator_from_slice(slice(0, 6, 2))), %5B0, 2, 4%5D)%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Test itertools.