def test_droplast(self): self.assertEqual([0, 1], list(iters.droplast(3, range(5)))) self.assertEqual([], list(iters.droplast(10, range(2))))
def test_droplast(self): self.assertEqual([0,1], list(iters.droplast(3, range(5)))) self.assertEqual([], list(iters.droplast(10, range(2))))