def test_overlay_href_non_empty_file():
    plot = SigPlot()
    assert plot.inputs == []

    path = "foo.tmp"
    plot.overlay_href(path)
    assert plot.inputs == [path]
def test_overlay_href_non_empty_http():
    plot = SigPlot()
    assert plot.inputs == []

    path = "http://sigplot.lgsinnovations.com/dat/sin.tmp"
    plot.overlay_href(path)

    assert os.path.exists("./sin.tmp")
    assert plot.inputs == ["sin.tmp"]

    os.remove("./sin.tmp")