github.com/kayoticsully/syncthing@v0.8.9-0.20140724133906-c45a2fdc03f8/upnp/upnp_test.go (about)

     1  package upnp
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  func TestGetTechnicolorRootURL(t *testing.T) {
     9  	r, _ := os.Open("testdata/technicolor.xml")
    10  	_, action, err := getServiceURLReader("http://localhost:1234/", r)
    11  	if err != nil {
    12  		t.Fatal(err)
    13  	}
    14  	if action != "urn:schemas-upnp-org:service:WANPPPConnection:1" {
    15  		t.Error("Unexpected action", action)
    16  	}
    17  }