funk.tools

funk.value_object(**kwargs)

Creates an object with attributes set the values in kwargs. For instance:

author = value_object(first_name="Joe", last_name="Bloggs")

assert author.first_name == "Joe"
assert author.last_name == "Bloggs"

Previous topic

funk.matchers

Next topic

Cheat Sheet

This Page