def METHOD_NAME(self):
    manifest = Manifest()
    manifest.add_link("http://foo/", "self", extra="value")
    dict = manifest.as_dict
    assert (
        [{'href': 'http://foo/', 'rel': 'self', 'extra': 'value'}] ==
        dict['links'])