cfme.utils.pretty module

class cfme.utils.pretty.Pretty[source]

Bases: object

A mixin that prints repr as <MyClass field1=..., field2=...>. The fields that will be printed should be stored in the class’s pretty_attrs attribute (none by default).

pretty_attrs = []
cfme.utils.pretty.attr_repr(o, attr)[source]

Return the string repr of the attribute attr on the object o

cfme.utils.pretty.pr_obj(attrs)[source]
cfme.utils.pretty.pretty_repr(attrs, o)[source]