def test_domain_short_dict_representation(): domain = Domain("foo", "52") domain.to_short_dict().should.equal( {"name": "foo", "status": "REGISTERED"}) domain.description = "foo bar" domain.to_short_dict()["description"].should.equal("foo bar")
def test_domain_short_dict_representation(): domain = Domain("foo", "52", TEST_REGION) domain.to_short_dict().should.equal({ "name": "foo", "status": "REGISTERED", "arn": "arn:aws:swf:{0}:{1}:/domain/foo".format(TEST_REGION, ACCOUNT_ID), }) domain.description = "foo bar" domain.to_short_dict()["description"].should.equal("foo bar")