def test_templated_link_to_dict(): link = Link( href="href", templated=True, ) assert_that(link.to_dict(), is_(equal_to({ "href": "href", "templated": True, })))
def test_typed_link_to_dict(): link = Link( href="href", type="type", ) assert_that(link.to_dict(), is_(equal_to({ "href": "href", "type": "type", })))