We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The extracting() method only flattens a collection of objects:
extracting()
fred = Person('Fred','Smith') bob = Person('Bob','Barr') people = [fred, bob] assert_that(people).extract('first_name').is_equal_to(['Fred','Bob'])
Extend it to flatten a collection of dicts by key:
fred = {'first_name': 'Fred', 'last_name': 'Smith'} bob = {'first_name': 'Bob', 'last_name': 'Barr'} people = [fred, bob] assert_that(people).extract('first_name').is_equal_to(['Fred','Bob'])