Improve Account.repr() (#4325)

* Include more detail in Account's repr.

In particular, regr and meta.

* Fix test.

* Review feedback.

* Lint

* Test prefix only.
This commit is contained in:
Jacob Hoffman-Andrews
2017-04-18 17:09:22 -07:00
committed by Brad Warren
parent b0600483fd
commit d54cb3c59d
2 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ class Account(object): # pylint: disable=too-few-public-methods
self.meta.creation_dt), self.meta.creation_host, self.id[:4])
def __repr__(self):
return "<{0}({1})>".format(self.__class__.__name__, self.id)
return "<{0}({1}, {2}, {3})>".format(
self.__class__.__name__, self.regr, self.id, self.meta)
def __eq__(self, other):
return (isinstance(other, self.__class__) and