def test_reversed(self): l = [1, 2, 3] dr = sn.reversed(l) self.assertEqual([3, 2, 1], list(evaluate(dr)))
def test_reversed(): l = [1, 2, 3] dr = sn.reversed(l) assert [3, 2, 1] == list(sn.evaluate(dr))