Add 'status' to SWF *Type string representation

This commit is contained in:
Jean-Baptiste Barth 2015-10-02 03:42:40 +02:00
parent 8b02c0b85e
commit 036ab194ba
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class GenericType(object):
def __repr__(self):
cls = self.__class__.__name__
attrs = "name: %(name)s, version: %(version)s" % self.__dict__
attrs = "name: %(name)s, version: %(version)s, status: %(status)s" % self.__dict__
return "{}({})".format(cls, attrs)
@property

View File

@ -47,4 +47,4 @@ def test_full_dict_representation():
def test_string_representation():
_type = FooType("test-foo", "v1.0")
str(_type).should.equal("FooType(name: test-foo, version: v1.0)")
str(_type).should.equal("FooType(name: test-foo, version: v1.0, status: REGISTERED)")