示例#1
0
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")
示例#2
0
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")