def test_set_location(): entity = DXFGraphic() entity.set_hyperlink('link', 'description', 'location') hyperlink, description, location = entity.get_hyperlink() assert hyperlink == 'link' assert description == 'description' assert location == 'location'
def test_set_location(): entity = DXFGraphic() entity.set_hyperlink("link", "description", "location") hyperlink, description, location = entity.get_hyperlink() assert hyperlink == "link" assert description == "description" assert location == "location"
def test_set_hyperlink(): entity = DXFGraphic() assert entity.has_hyperlink() is False entity.set_hyperlink('link') assert entity.has_hyperlink() is True hyperlink, description, location = entity.get_hyperlink() assert hyperlink == 'link' assert description == '' assert location == ''