From 7b6d14d81885cf4c83f2e3bbaca50ba1c0904709 Mon Sep 17 00:00:00 2001 From: Radomir Stevanovic Date: Tue, 20 Jun 2017 23:56:57 +0200 Subject: [PATCH] added test for pluckable iter --- tests/test_pluckable.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_pluckable.py b/tests/test_pluckable.py index db677ec..b69b559 100755 --- a/tests/test_pluckable.py +++ b/tests/test_pluckable.py @@ -235,6 +235,9 @@ def test_attrgetter_namedtuple(self): Point = namedtuple("Point", "x y z") self.assertEqual(pluckable(Point(3, 2, 1)).x.value, 3) + def test_iter(self): + self.assertEqual(list(iter(self.obj.users.name.last)), ['smith', 'bonobo']) + if __name__ == '__main__': unittest.main()