Move *Type __repr__ to GenericType

This commit is contained in:
Jean-Baptiste Barth 2015-10-02 03:37:14 +02:00
commit 8b02c0b85e
2 changed files with 9 additions and 6 deletions

View file

@ -44,3 +44,7 @@ def test_full_dict_representation():
_type.non_whitelisted_property = "34"
_type.to_full_dict()["configuration"].keys().should.equal(["defaultTaskList", "justAnExampleTimeout"])
def test_string_representation():
_type = FooType("test-foo", "v1.0")
str(_type).should.equal("FooType(name: test-foo, version: v1.0)")