Exemplo n.º 1
0
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'
Exemplo n.º 2
0
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"
Exemplo n.º 3
0
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 == ''