Skip to content

Commit

Permalink
added test for pluckable iter
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed Jun 20, 2017
1 parent 9592885 commit 7b6d14d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_pluckable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 7b6d14d

Please sign in to comment.