예제 #1
0
def test_templated_link_to_dict():
    link = Link(
        href="href",
        templated=True,
    )
    assert_that(link.to_dict(),
                is_(equal_to({
                    "href": "href",
                    "templated": True,
                })))
예제 #2
0
def test_typed_link_to_dict():
    link = Link(
        href="href",
        type="type",
    )
    assert_that(link.to_dict(),
                is_(equal_to({
                    "href": "href",
                    "type": "type",
                })))